Skip to content

Commit

Permalink
Merge pull request #668 from akovac35/akovac35-patch-1
Browse files Browse the repository at this point in the history
Fix null reference exception for multi column filtering in MatTable
  • Loading branch information
enkodellc authored Oct 8, 2020
2 parents 62d2293 + 9acfb05 commit 11d6a3c
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/MatBlazor/Components/MatTable/MatTable.razor
Original file line number Diff line number Diff line change
Expand Up @@ -458,7 +458,7 @@

foreach (var item in items)
{
var values = properties.Where(x => x.GetValue(item, null).ToString() != null).Select(x => x.GetValue(item, null).ToString());
var values = properties.Where(x => x.GetValue(item, null)?.ToString() != null).Select(x => x.GetValue(item, null).ToString());

if (!values.Any())
{
Expand Down

0 comments on commit 11d6a3c

Please sign in to comment.