Browse Source

Merge pull request #36730 from raulsntos/print-null-check

Fix missing null check in Mono Binding of GD.print
Rémi Verschelde 5 years ago
parent
commit
c9768f15f7
1 changed files with 1 additions and 1 deletions
  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)
         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()
         public static void PrintStack()