Query :: NRE protection is not applied to manually created GroupJoin when trying to extract keys from collections potentially containing nulls #6429
Labels
closed-fixed
The issue has been fixed and is/will be included in the release indicated by the issue milestone.
type-bug
Milestone
Example of a query that could throw NRE:
this throws if one (or more) inner element is null - we don't apply null protection logic to the key extraction, so we try to access Level1_Optional_Id of a null-valued Level2 item.
We already do there correct thing if GroupJoin is created by us (i.e. when we rewrite optional navigations), but we should do it for all cases. Current workaround is to simply add null protection logic yourself, in a form of l2 != null ? l2.Level1_Optional_Id : null
The text was updated successfully, but these errors were encountered: