diff options
author | Jonas <jbernemann@gmx.de> | 2019-12-06 11:56:50 +0100 |
---|---|---|
committer | GitHub <noreply@github.com> | 2019-12-06 11:56:50 +0100 |
commit | 11258db001cb4132fa8d5630599ebf95bde1622e (patch) | |
tree | 5f9d0aa93585583422ac1c4f1b8357d6d95bdb33 /modules | |
parent | 0aea0d0b39cfa8959350a0c89fde72d50999fc5f (diff) |
Fix missing null checks in Mono Binding of GD
The print methods of mono binding was missing null checks for the params
Diffstat (limited to 'modules')
-rw-r--r-- | modules/mono/glue/Managed/Files/GD.cs | 8 |
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() |