From 42e874721ac1059364986f032fcd171fd238b7b2 Mon Sep 17 00:00:00 2001 From: bclothier Date: Thu, 1 Aug 2019 21:06:47 -0500 Subject: [PATCH] Avoid a NRE when alternate type info is not used. --- Rubberduck.VBEEditor/ComManagement/TypeLibs/TypeInfoWrapper.cs | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/Rubberduck.VBEEditor/ComManagement/TypeLibs/TypeInfoWrapper.cs b/Rubberduck.VBEEditor/ComManagement/TypeLibs/TypeInfoWrapper.cs index f21b2421e2..56cb06b5a0 100644 --- a/Rubberduck.VBEEditor/ComManagement/TypeLibs/TypeInfoWrapper.cs +++ b/Rubberduck.VBEEditor/ComManagement/TypeLibs/TypeInfoWrapper.cs @@ -228,7 +228,7 @@ public void Dispose() (_container as IDisposable)?.Dispose(); _typeInfoPointer.Dispose(); - _typeInfoAlternatePointer.Dispose(); + _typeInfoAlternatePointer?.Dispose(); } TypeInfoVBEExtensions _vbeExtensions;