Skip to content

Commit 5f6fe24

Browse files
committed
Fix an NRE
1 parent 6b089dc commit 5f6fe24

File tree

1 file changed

+5
-0
lines changed

1 file changed

+5
-0
lines changed

RetailCoder.VBE/UI/SelectionChangeService.cs

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -132,6 +132,11 @@ private void DispatchSelectedDesignerDeclaration(IVBComponent component)
132132

133133
private void DispatchSelectedProjectNodeDeclaration(IVBComponent component)
134134
{
135+
if (_parser.State.DeclarationFinder == null)
136+
{
137+
return;
138+
}
139+
135140
if ((component == null || component.IsWrappingNullReference) && !_vbe.ActiveVBProject.IsWrappingNullReference)
136141
{
137142
//The user might have selected the project node in Project Explorer. If they've chosen a folder, we'll return the project anyway.

0 commit comments

Comments
 (0)