File tree Expand file tree Collapse file tree 1 file changed +2
-2
lines changed
Rubberduck.VBEEditor/Events Expand file tree Collapse file tree 1 file changed +2
-2
lines changed Original file line number Diff line number Diff line change @@ -56,7 +56,7 @@ public void Stop()
56
56
57
57
private void RegisterComponentsEventSink ( IVBComponents components , string projectId )
58
58
{
59
- if ( _componentsEventsSinks . ContainsKey ( projectId ) )
59
+ if ( projectId == null || _componentsEventsSinks . ContainsKey ( projectId ) )
60
60
{
61
61
// already registered - this is caused by the initial load+rename of a project in the VBE
62
62
return ;
@@ -77,7 +77,7 @@ private void RegisterComponentsEventSink(IVBComponents components, string projec
77
77
78
78
private void UnregisterComponentsEventSink ( string projectId )
79
79
{
80
- if ( ! _componentsEventsSinks . ContainsKey ( projectId ) ) { return ; }
80
+ if ( projectId == null || ! _componentsEventsSinks . ContainsKey ( projectId ) ) { return ; }
81
81
82
82
var componentEventSink = _componentsEventsSinks [ projectId ] ;
83
83
var info = _componentEventsInfo [ projectId ] ;
You can’t perform that action at this time.
0 commit comments