Skip to content

Commit 971665b

Browse files
authored
Merge pull request #5 from bzuillsmith/master
Fixed null reference issue
2 parents 3da3321 + ff83078 commit 971665b

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)