We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
2 parents bc53579 + f98ba9d commit 2cc66b7Copy full SHA for 2cc66b7
src/jQueryDatatableServerSideNetCore22/Extensions/LinqExtensions.cs
@@ -40,7 +40,7 @@ public static IQueryable<T> WhereDynamic<T>(
40
41
//Expression
42
sourceList = sourceList.Where(c =>
43
- properties.Any(p => p.GetValue(c).ToString()
+ properties.Any(p => p.GetValue(c) != null && p.GetValue(c).ToString()
44
.Contains(query, StringComparison.InvariantCultureIgnoreCase)));
45
}
46
catch (Exception e)
0 commit comments