Skip to content

Commit 2399b0f

Browse files
committed
Fixes disabled project issue with simulator wizard.
1 parent e23ed6c commit 2399b0f

File tree

1 file changed

+5
-0
lines changed

1 file changed

+5
-0
lines changed

FRC-Extension/SimulatorWizards/MainProjectSearchWizard.cs

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -36,6 +36,11 @@ public void RunStarted(object automationObject, Dictionary<string, string> repla
3636
//Loop through all projects found
3737
foreach (Project project in dte.Solution.Projects)
3838
{
39+
if (project.Globals == null)
40+
{
41+
//If globals are null, continue, as the project is probably disabled.
42+
continue;
43+
}
3944
//Find the project with the RobotProject global, and also make sure it references WPILib.
4045
if (project.Globals.VariableExists["RobotProject"])
4146
{

0 commit comments

Comments
 (0)