Skip to content

Commit 11d6a3c

Browse files
authored
Merge pull request #668 from akovac35/akovac35-patch-1
Fix null reference exception for multi column filtering in MatTable
2 parents 62d2293 + 9acfb05 commit 11d6a3c

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

src/MatBlazor/Components/MatTable/MatTable.razor

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -458,7 +458,7 @@
458458

459459
foreach (var item in items)
460460
{
461-
var values = properties.Where(x => x.GetValue(item, null).ToString() != null).Select(x => x.GetValue(item, null).ToString());
461+
var values = properties.Where(x => x.GetValue(item, null)?.ToString() != null).Select(x => x.GetValue(item, null).ToString());
462462

463463
if (!values.Any())
464464
{

0 commit comments

Comments
 (0)