Skip to content

Commit 8c23b70

Browse files
committed
VBComponents:
- Added nullcheck to AttachEvents.
1 parent 178f87d commit 8c23b70

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

Rubberduck.VBEEditor/SafeComWrappers/VBA/VBComponents.cs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -174,7 +174,7 @@ private static void AttachEvents(VB.VBComponents components)
174174
{
175175
lock (Locker)
176176
{
177-
if (_components == null)
177+
if (_components == null && components != null)
178178
{
179179
_components = components;
180180
_componentAdded = OnComponentAdded;

0 commit comments

Comments
 (0)