Skip to content

Commit 9ed3b43

Browse files
committed
Reorder operands to avoid null string error.
1 parent ac88d9e commit 9ed3b43

File tree

1 file changed

+4
-4
lines changed

1 file changed

+4
-4
lines changed

Rubberduck.Core/Navigation/CodeExplorer/CodeExplorerViewModel.cs

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -607,10 +607,10 @@ public void FilterByName(IEnumerable<CodeExplorerItemViewModel> nodes, string se
607607
{
608608
FilterByName(item.Items, searchString);
609609
}
610-
611-
item.IsVisible = item.Items.Any(c => c.IsVisible) ||
612-
item.Name.ToLowerInvariant().Contains(searchString.ToLowerInvariant()) ||
613-
string.IsNullOrEmpty(searchString);
610+
611+
item.IsVisible = string.IsNullOrEmpty(searchString) ||
612+
item.Items.Any(c => c.IsVisible) ||
613+
item.Name.ToLowerInvariant().Contains(searchString.ToLowerInvariant());
614614
}
615615
}
616616

0 commit comments

Comments
 (0)