Skip to content

Commit 42e8747

Browse files
committed
Avoid a NRE when alternate type info is not used.
1 parent 110a79b commit 42e8747

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

Rubberduck.VBEEditor/ComManagement/TypeLibs/TypeInfoWrapper.cs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -228,7 +228,7 @@ public void Dispose()
228228
(_container as IDisposable)?.Dispose();
229229

230230
_typeInfoPointer.Dispose();
231-
_typeInfoAlternatePointer.Dispose();
231+
_typeInfoAlternatePointer?.Dispose();
232232
}
233233

234234
TypeInfoVBEExtensions _vbeExtensions;

0 commit comments

Comments
 (0)