Skip to content

Commit 830963e

Browse files
committed
Prevent null selection for Find All References in CE
1 parent 3e4e561 commit 830963e

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)