Skip to content

Commit 9798c63

Browse files
committed
fixes #676, #674, quite likely also #675, but also uncovers an issue with correctly resolving references to known members in dictionary/field calls (using the ! syntax)
1 parent e60d2c4 commit 9798c63

File tree

1 file changed

+5
-0
lines changed

1 file changed

+5
-0
lines changed

Rubberduck.Parsing/Symbols/IdentifierReferenceResolver.cs

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -321,6 +321,11 @@ private Declaration ResolveInternal(VBAParser.DictionaryCallStmtContext fieldCal
321321
}
322322

323323
var parentType = ResolveType(parent);
324+
if (parentType == null)
325+
{
326+
return null;
327+
}
328+
324329
var members = _declarations.FindMembers(parentType);
325330
var fieldName = fieldCall.ambiguousIdentifier().GetText();
326331

0 commit comments

Comments
 (0)