瀏覽代碼

Fix missing null check in Mono Binding of GD.print

(cherry picked from commit 6b9c22542f6948592dd3007e61b6fe0aaa51f62f)
Raul Santos 5 年之前
父節點
當前提交
447acafa97
共有 1 個文件被更改,包括 1 次插入1 次删除
  1. 1 1
      modules/mono/glue/GodotSharp/GodotSharp/Core/GD.cs

+ 1 - 1
modules/mono/glue/GodotSharp/GodotSharp/Core/GD.cs

@@ -83,7 +83,7 @@ namespace Godot
 
         public static void Print(params object[] what)
         {
-            godot_icall_GD_print(Array.ConvertAll(what, x => x.ToString()));
+            godot_icall_GD_print(Array.ConvertAll(what, x => x?.ToString()));
         }
 
         public static void PrintStack()