Skip to content

Commit 16005bf

Browse files
committed
#29: Changing Debug Options crashes visual studio
1 parent 894f024 commit 16005bf

1 file changed

Lines changed: 7 additions & 4 deletions

File tree

RaspberryDebugger/PackageHelper.cs

Lines changed: 7 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -532,11 +532,14 @@ public static Project FindInSubprojects(Project parentProject, string projectNam
532532

533533
foreach (ProjectItem projectItem in parentProject.ProjectItems)
534534
{
535-
project = FindInSubprojects(projectItem.SubProject, projectName);
536-
537-
if (project != null)
535+
if (projectItem.SubProject != null)
538536
{
539-
break;
537+
project = FindInSubprojects(projectItem.SubProject, projectName);
538+
539+
if (project != null)
540+
{
541+
break;
542+
}
540543
}
541544
}
542545
}

0 commit comments

Comments
 (0)