From e86ef017f25fd265bb4a43372b50444badccc9ba Mon Sep 17 00:00:00 2001 From: Kelly Thomas Date: Wed, 6 Jun 2018 22:31:54 +0800 Subject: [PATCH] allow undefined GODOT_DEBUG_MSBUILD environment variable (cherry picked from commit 17516822f9424c6a94402339ee466f9d37264482) --- modules/mono/editor/GodotSharpTools/Build/BuildSystem.cs | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/modules/mono/editor/GodotSharpTools/Build/BuildSystem.cs b/modules/mono/editor/GodotSharpTools/Build/BuildSystem.cs index a5dd37b5dc5..16beacb45c3 100644 --- a/modules/mono/editor/GodotSharpTools/Build/BuildSystem.cs +++ b/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()