Skip to content

Commit fc4c1c5

Browse files
committed
added refreshing the DeclarationFinder in the constructor of RubberduckParserState to avoid NullReferenceExceptions in the first parsing run
1 parent b022839 commit fc4c1c5

File tree

1 file changed

+1
-0
lines changed

1 file changed

+1
-0
lines changed

Rubberduck.Parsing/VBA/RubberduckParserState.cs

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -80,6 +80,7 @@ public RubberduckParserState(IVBE vbe)
8080
_vbe = vbe;
8181
AddEventHandlers();
8282
IsEnabled = true;
83+
RefreshFinder(vbe.HostApplication());
8384
}
8485

8586
private void HandleStateChanged(ParserState state)

0 commit comments

Comments
 (0)