Merge pull request #119601 from Muteem/fix/android-proxy-null-args-npe

Android: Fix NPE in JavaClassWrapper proxy when interface method has no arguments
This commit is contained in:
Thaddeus Crews
2026-05-20 14:33:16 -05:00
@@ -86,7 +86,7 @@ class AndroidRuntimePlugin(godot: Godot) : GodotPlugin(godot) {
// Invocation for the interface single abstract method falls here and is dispatched to the
// Godot [Callable].
else -> godotCallable.call(*args)
else -> godotCallable.call(*(args ?: emptyArray()))
}
}
}
@@ -111,7 +111,7 @@ class AndroidRuntimePlugin(godot: Godot) : GodotPlugin(godot) {
// Invocation for the remaining interface(s) methods falls here and is dispatched to the
// Godot Object.
else -> Callable.call(godotObjectID, methodName, *args)
else -> Callable.call(godotObjectID, methodName, *(args ?: emptyArray()))
}
}
}