Fix Android JavaClassWrapper test crashes on API 26 and lower
This commit is contained in:
parent
2487a297b2
commit
8e5c352b48
2 changed files with 16 additions and 2 deletions
|
|
@ -44,6 +44,11 @@ bool JavaClass::_call_method(JavaObject *p_instance, const StringName &p_method,
|
|||
ERR_FAIL_NULL_V(env, false);
|
||||
|
||||
env->PushLocalFrame(p_argcount);
|
||||
if (env->ExceptionCheck()) {
|
||||
env->ExceptionDescribe();
|
||||
env->ExceptionClear();
|
||||
return false;
|
||||
}
|
||||
|
||||
MethodInfo *method = nullptr;
|
||||
for (MethodInfo &E : M->value) {
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue