Skip to content

Commit ff83078

Browse files
committed
Fixed null reference issue ocurring when projects of extensions don't have the CodeModel property set
1 parent 3da3321 commit ff83078

File tree

1 file changed

+2
-0
lines changed

1 file changed

+2
-0
lines changed

VSIXInteropFormsToolkit/GenerateInteropFormCommand.cs

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -141,6 +141,8 @@ private void CreateInteropFormProxiesForSolution()
141141

142142
private void CreateInteropFormProxiesForProject(Project currentAssembly, ProjectItems projItemCollection)
143143
{
144+
if (currentAssembly == null || currentAssembly.CodeModel == null) return;
145+
144146
IsVB = (String.Compare(currentAssembly.CodeModel.Language, Resource.LanguageVB, false) == 0);
145147
foreach (ProjectItem item in projItemCollection)
146148
{

0 commit comments

Comments
 (0)