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