Browse Source

Merge pull request #19396 from KellyThomas/env-var-check

allow undefined GODOT_DEBUG_MSBUILD environment  variable
Ignacio Etcheverry 7 years ago
parent
commit
af15a1f10e
1 changed files with 1 additions and 1 deletions
  1. 1 1
      modules/mono/editor/GodotSharpTools/Build/BuildSystem.cs

+ 1 - 1
modules/mono/editor/GodotSharpTools/Build/BuildSystem.cs

@@ -234,7 +234,7 @@ namespace GodotSharpTools.Build
 
         private static bool IsDebugMSBuildRequested()
         {
-            return Environment.GetEnvironmentVariable("GODOT_DEBUG_MSBUILD").Trim() == "1";
+            return Environment.GetEnvironmentVariable("GODOT_DEBUG_MSBUILD")?.Trim() == "1";
         }
 
         public void Dispose()