You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
A null reference exception is being thrown if a Service call returns a generic collection (e.g. IEnumerable).
E.g.
// This is finepublic ReturnDto Any(RequestDto){}// As is thispublic ReturnDto[]Any(RequestDto){}// This is notpublicIEnumerable<ReturnDto>Any(RequestDto){}
The issue is the call to Type.GetElementType() is returning null when the resourceType is an IEnumerable collection (PropertyEnricherManager ln46).
Only setting AllowMultiple on request types and request properties
Only setting IsCollection on response types and response properties
Fixing issue #8 for reflection enrichers
Updated sources doc
Only setting AllowMultiple on request types and request properties
Only setting IsCollection on response types and response properties
Fixing issue #8 for reflection enrichers
Updated sources doc
A null reference exception is being thrown if a Service call returns a generic collection (e.g. IEnumerable).
E.g.
The issue is the call to
Type.GetElementType()
is returning null when the resourceType is an IEnumerable collection (PropertyEnricherManager ln46).Type.GetElementType()
is for Array types, need to update to useType.GetGenericArguments
if IEnumerable. See http://stackoverflow.com/questions/7072088/why-does-type-getelementtype-return-nullThe text was updated successfully, but these errors were encountered: