Fix missing null checks in Mono Binding of GD

The print methods of mono binding was missing null checks for the params
This commit is contained in:
Jonas 2019-12-06 11:56:50 +01:00 committed by GitHub
parent 0aea0d0b39
commit 11258db001
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
1 changed files with 4 additions and 4 deletions

View File

@ -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()