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

allow undefined GODOT_DEBUG_MSBUILD environment  variable
This commit is contained in:
Ignacio Etcheverry 2018-06-06 18:47:09 +02:00 committed by GitHub
commit af15a1f10e
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23

View file

@ -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()