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 4670b27 commit 178f87dCopy full SHA for 178f87d
Rubberduck.VBEEditor/SafeComWrappers/VBA/VBProject.cs
@@ -60,7 +60,7 @@ public IReferences References
60
61
public IVBComponents VBComponents
62
{
63
- get { return new VBComponents(IsWrappingNullReference ? null : Target.VBComponents); }
+ get { return new VBComponents(IsWrappingNullReference || Protection == ProjectProtection.Locked ? null : Target.VBComponents); }
64
}
65
66
public ProjectProtection Protection
@@ -232,4 +232,4 @@ public string ProjectDisplayName
232
233
234
235
-}
+}
0 commit comments