File tree Expand file tree Collapse file tree 2 files changed +4
-3
lines changed
Rubberduck.Core/UI/CodeExplorer/Commands Expand file tree Collapse file tree 2 files changed +4
-3
lines changed Original file line number Diff line number Diff line change @@ -74,9 +74,9 @@ private bool SpecialEvaluateCanExecute(object parameter)
74
74
75
75
private bool EvaluateCanExecute ( ICodeExplorerNode node )
76
76
{
77
- if ( ! ApplicableNodes . Contains ( node . GetType ( ) )
78
- || ! ( node is CodeExplorerItemViewModel )
79
- || node . Declaration == null )
77
+ if ( node ? . Declaration == null
78
+ || ! ApplicableNodes . Contains ( node . GetType ( ) )
79
+ || ! ( node is CodeExplorerItemViewModel ) )
80
80
{
81
81
return false ;
82
82
}
Original file line number Diff line number Diff line change @@ -18,6 +18,7 @@ public sealed class RenameCommand : CodeExplorerCommandBase
18
18
typeof ( CodeExplorerProjectViewModel ) ,
19
19
typeof ( CodeExplorerComponentViewModel ) ,
20
20
typeof ( CodeExplorerMemberViewModel ) ,
21
+ typeof ( CodeExplorerSubMemberViewModel ) ,
21
22
typeof ( CodeExplorerCustomFolderViewModel )
22
23
} ;
23
24
You can’t perform that action at this time.
0 commit comments