Skip to content

Commit

Permalink
Fix NRE in tenants admin when some tenants don't have a Category spec…
Browse files Browse the repository at this point in the history
…ified (#11391)
  • Loading branch information
Piedone authored Mar 16, 2022
1 parent 6ea085a commit 4e8e3e2
Showing 1 changed file with 1 addition and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -122,7 +122,7 @@ public async Task<IActionResult> Index(TenantIndexOptions options, PagerParamete

if (!String.IsNullOrWhiteSpace(options.Category))
{
entries = entries.Where(t => t.Category.Equals(options.Category, StringComparison.OrdinalIgnoreCase)).ToList();
entries = entries.Where(t => t.Category?.Equals(options.Category, StringComparison.OrdinalIgnoreCase) == true).ToList();
}

switch (options.Status)
Expand Down

0 comments on commit 4e8e3e2

Please sign in to comment.