We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent d2ba220 commit 7bbf74bCopy full SHA for 7bbf74b
Rubberduck.Parsing/Symbols/DeclarationFinder.cs
@@ -702,6 +702,10 @@ private IEnumerable<Declaration> FindFormControlHandlers(IReadOnlyList<Declarati
702
var handlerNames = declarations
703
.Where(declaration => declaration.IsBuiltIn && declaration.DeclarationType == DeclarationType.Event)
704
.SelectMany(e => controls.Select(c => c.IdentifierName + "_" + e.IdentifierName));
705
+ if (!_userDeclarationsByType.ContainsKey(DeclarationType.Procedure))
706
+ {
707
+ return Enumerable.Empty<Declaration>();
708
+ }
709
var handlers = _userDeclarationsByType[DeclarationType.Procedure]
710
.Where(procedure => handlerNames.Contains(procedure.IdentifierName));
711
return handlers;
0 commit comments