Skip to content

Commit dffdc13

Browse files
Hosch250retailcoder
authored andcommitted
Prevent null selection for Find All References in CE (#1588)
1 parent d702a22 commit dffdc13

File tree

1 file changed

+3
-1
lines changed

1 file changed

+3
-1
lines changed

RetailCoder.VBE/UI/CodeExplorer/Commands/CodeExplorer_FindAllReferencesCommand.cs

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -17,7 +17,9 @@ public CodeExplorer_FindAllReferencesCommand(RubberduckParserState state, FindAl
1717

1818
public override bool CanExecute(object parameter)
1919
{
20-
return _state.Status == ParserState.Ready && !(parameter is CodeExplorerCustomFolderViewModel);
20+
return _state.Status == ParserState.Ready &&
21+
parameter != null &&
22+
!(parameter is CodeExplorerCustomFolderViewModel);
2123
}
2224

2325
public override void Execute(object parameter)

0 commit comments

Comments
 (0)