File tree Expand file tree Collapse file tree 1 file changed +2
-2
lines changed
src/Scim/SimpleIdServer.Scim/Extensions Expand file tree Collapse file tree 1 file changed +2
-2
lines changed Original file line number Diff line number Diff line change @@ -593,12 +593,12 @@ record = jObj[firstRecord.Schema.Id] as JObject;
593593 switch ( firstRecord . AttributeNode . SchemaAttribute . Type )
594594 {
595595 case SCIMSchemaAttributeTypes . STRING :
596- var valuesStr = records . Select ( r => r . AttributeNode . ValueString ) . Where ( r => ! string . IsNullOrWhiteSpace ( r ) ) ;
596+ var valuesStr = records . Select ( r => r . AttributeNode . ValueString ) . Where ( r => r != null ) ;
597597 if ( valuesStr . Any ( ) )
598598 record . Add ( firstRecord . AttributeNode . SchemaAttribute . Name , firstRecord . AttributeNode . SchemaAttribute . MultiValued ? ( JToken ) new JArray ( valuesStr ) : valuesStr . First ( ) ) ;
599599 break ;
600600 case SCIMSchemaAttributeTypes . REFERENCE :
601- var valuesRef = records . Select ( r => r . AttributeNode . ValueReference ) . Where ( r => ! string . IsNullOrWhiteSpace ( r ) ) ;
601+ var valuesRef = records . Select ( r => r . AttributeNode . ValueReference ) . Where ( r => r != null ) ;
602602 if ( valuesRef . Any ( ) )
603603 record . Add ( firstRecord . AttributeNode . SchemaAttribute . Name , firstRecord . AttributeNode . SchemaAttribute . MultiValued ? ( JToken ) new JArray ( valuesRef ) : valuesRef . First ( ) ) ;
604604 break ;
You can’t perform that action at this time.
0 commit comments