Skip to content

Commit 10b4779

Browse files
committed
Makes deploy project detect an unloaded project
Closes #24
1 parent 061ae43 commit 10b4779

File tree

1 file changed

+5
-0
lines changed

1 file changed

+5
-0
lines changed

FRC-Extension/Buttons/DeployDebugButton.cs

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -125,6 +125,11 @@ public override void QueryCallback(object sender, EventArgs e)
125125
{
126126
foreach (Project project in dte.Solution.Projects)
127127
{
128+
if (project.Globals == null)
129+
{
130+
//If globals are null, continue, as the project is probably disabled.
131+
continue;
132+
}
128133
if (project.Globals.VariableExists["RobotProject"])
129134
{
130135
if (project.Globals["RobotProject"].ToString() != "yes")

0 commit comments

Comments
 (0)