summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorJonas <jbernemann@gmx.de>2019-12-06 11:56:50 +0100
committerGitHub <noreply@github.com>2019-12-06 11:56:50 +0100
commit11258db001cb4132fa8d5630599ebf95bde1622e (patch)
tree5f9d0aa93585583422ac1c4f1b8357d6d95bdb33
parent0aea0d0b39cfa8959350a0c89fde72d50999fc5f (diff)
Fix missing null checks in Mono Binding of GD
The print methods of mono binding was missing null checks for the params
-rw-r--r--modules/mono/glue/Managed/Files/GD.cs8
1 files changed, 4 insertions, 4 deletions
diff --git a/modules/mono/glue/Managed/Files/GD.cs b/modules/mono/glue/Managed/Files/GD.cs
index 2068099ac6..19962d418a 100644
--- a/modules/mono/glue/Managed/Files/GD.cs
+++ b/modules/mono/glue/Managed/Files/GD.cs
@@ -93,22 +93,22 @@ namespace Godot
public static void PrintErr(params object[] what)
{
- godot_icall_GD_printerr(Array.ConvertAll(what, x => x.ToString()));
+ godot_icall_GD_printerr(Array.ConvertAll(what, x => x?.ToString()));
}
public static void PrintRaw(params object[] what)
{
- godot_icall_GD_printraw(Array.ConvertAll(what, x => x.ToString()));
+ godot_icall_GD_printraw(Array.ConvertAll(what, x => x?.ToString()));
}
public static void PrintS(params object[] what)
{
- godot_icall_GD_prints(Array.ConvertAll(what, x => x.ToString()));
+ godot_icall_GD_prints(Array.ConvertAll(what, x => x?.ToString()));
}
public static void PrintT(params object[] what)
{
- godot_icall_GD_printt(Array.ConvertAll(what, x => x.ToString()));
+ godot_icall_GD_printt(Array.ConvertAll(what, x => x?.ToString()));
}
public static float Randf()