Skip to content

Commit a83be73

Browse files
authored
Merge pull request #1861 from Hosch250/Issue1851
Fix bug where userform events are loaded without FormEvents being loaded
2 parents cad72f7 + 7741c5b commit a83be73

File tree

1 file changed

+5
-0
lines changed

1 file changed

+5
-0
lines changed

Rubberduck.Parsing/Symbols/FormEventDeclarations.cs

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -27,6 +27,11 @@ public IReadOnlyList<Declaration> Load()
2727
}
2828
}
2929

30+
if (formsClassModule == null)
31+
{
32+
return new List<Declaration>();
33+
}
34+
3035
return AddHiddenMSFormDeclarations(formsClassModule);
3136
}
3237

0 commit comments

Comments
 (0)