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
Can you please check this discussion, I think you can find another workaround to solve it for now.
This is the default behavior since your filter query gets converted directly to a linq expression, so if you don't add the null check you get the exception.
FYI I'm planning to add a new feature to the next versions for adding the null checks automatically.
Thanks for the info! My workaround works as well but I'll consider adding null checks in the expressions directly instead of adding a null coalescing operator in all my query properties.
Version
2.8.4
Details
When adding a filter on a string which contains null data, GridifyQueryable throws a null reference exception. Here is an example of the crash:
Workaround: Add null coalescing operator in query to default to string.Empty
FirstName = ct.FirstName ?? string.Empty,
Steps to reproduce
The text was updated successfully, but these errors were encountered: