summaryrefslogtreecommitdiff
path: root/modules
diff options
context:
space:
mode:
authorIgnacio Roldán Etcheverry <neikeq@users.noreply.github.com>2019-12-06 14:53:29 +0100
committerGitHub <noreply@github.com>2019-12-06 14:53:29 +0100
commitc5c320412f9f26a13ff8cade56ed80ce6d97f11f (patch)
tree5f9d0aa93585583422ac1c4f1b8357d6d95bdb33 /modules
parent0aea0d0b39cfa8959350a0c89fde72d50999fc5f (diff)
parent11258db001cb4132fa8d5630599ebf95bde1622e (diff)
Merge pull request #34142 from NoFr1ends/fix-missing-null-checks-mono
Fix missing null checks in Mono Binding of GD
Diffstat (limited to 'modules')
-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()