summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorRĂ©mi Verschelde <rverschelde@gmail.com>2020-03-02 19:32:54 +0100
committerGitHub <noreply@github.com>2020-03-02 19:32:54 +0100
commitc9768f15f7bb194622b9020ab2614d47ac7e63dd (patch)
tree690c004e75c6ca33374e3549300ce8b88112127f
parentc292aab247262bd82cb99f6791ffe4348b2af535 (diff)
parent6b9c22542f6948592dd3007e61b6fe0aaa51f62f (diff)
Merge pull request #36730 from raulsntos/print-null-check
Fix missing null check in Mono Binding of GD.print
-rw-r--r--modules/mono/glue/GodotSharp/GodotSharp/Core/GD.cs2
1 files changed, 1 insertions, 1 deletions
diff --git a/modules/mono/glue/GodotSharp/GodotSharp/Core/GD.cs b/modules/mono/glue/GodotSharp/GodotSharp/Core/GD.cs
index 19962d418a..2a9c2d73b1 100644
--- a/modules/mono/glue/GodotSharp/GodotSharp/Core/GD.cs
+++ b/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()