-
Notifications
You must be signed in to change notification settings - Fork 63
Closed
Description
On a resolver returning a collection of objects containing nested collections of object, the query raise an ArgumentNullException if a property value is null and queried on.
Example:
class Text {
public string Value { get; set; }
}
class Result {
public IEnumerable<Text>? Texts { get; set; }
}From debugging in the stack trace it appears the generated dynamic expression is something like that:
results.SelectWithNullCheck(r => r.Texts.Select(t => t.Value))
This need to generate instead:
results.SelectWithNullCheck(r => r.Texts.SelectWithNullCheck(t => t.Value))
Metadata
Metadata
Assignees
Labels
No labels