Skip to content

Commit 8c98cee

Browse files
committed
FormDesignerRefactorRenameCommand
- Reinstated nullcheck on _state (was nuking RD menu texts)
1 parent 747eaf6 commit 8c98cee

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

RetailCoder.VBE/UI/Command/MenuItems/FormDesignerRefactorRenameCommandMenuItem.cs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -15,7 +15,7 @@ public FormDesignerRefactorRenameCommandMenuItem(CommandBase command)
1515

1616
public override bool EvaluateCanExecute(RubberduckParserState state)
1717
{
18-
return state.Status == ParserState.Ready && Command.CanExecute(null);
18+
return state != null && state.Status == ParserState.Ready && Command.CanExecute(null);
1919
}
2020
}
2121
}

0 commit comments

Comments
 (0)