Skip to content

Commit e3c2db1

Browse files
committed
Null check.
1 parent d52fe2e commit e3c2db1

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

Rubberduck.Parsing/VBA/RubberduckParser.cs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -244,7 +244,7 @@ private class EmptyStringLiteralListener : VBABaseListener
244244

245245
public override void ExitLiteral(VBAParser.LiteralContext context)
246246
{
247-
if (context.STRINGLITERAL().GetText() == "\"\"")
247+
if (context.STRINGLITERAL() != null && context.STRINGLITERAL().GetText() == "\"\"")
248248
{
249249
_contexts.Add(context);
250250
}

0 commit comments

Comments
 (0)