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 a2971ea commit 7a8f420Copy full SHA for 7a8f420
Rubberduck.VBEEditor/SafeComWrappers/VBA/VBComponents.cs
@@ -99,9 +99,11 @@ public override int GetHashCode()
99
100
public void ImportSourceFile(string path)
101
{
102
+ if (IsWrappingNullReference) { return; }
103
+
104
var ext = Path.GetExtension(path);
105
var name = Path.GetFileNameWithoutExtension(path);
- if (!File.Exists(path) || this[name] == null)
106
+ if (!File.Exists(path))
107
108
return;
109
}
@@ -152,8 +154,7 @@ public void ImportSourceFile(string path)
152
154
153
155
public void RemoveSafely(IVBComponent component)
156
- if (component == null)
- { return; }
157
+ if (component.IsWrappingNullReference) { return; }
158
159
switch (component.Type)
160
0 commit comments