Let it crash (#2030)

This commit is contained in:
Nullptr 2022-07-10 23:01:02 +08:00 committed by GitHub
parent ae62c1700b
commit 6ced146018
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
1 changed files with 1 additions and 1 deletions

View File

@ -109,7 +109,7 @@ namespace lspd {
} }
jmethodID mid = lsplant::JNI_GetStaticMethodID(env, entry_class_, method_name, method_sig); jmethodID mid = lsplant::JNI_GetStaticMethodID(env, entry_class_, method_name, method_sig);
if (mid) [[likely]] { if (mid) [[likely]] {
lsplant::JNI_CallStaticVoidMethod(env, entry_class_, mid, std::forward<Args>(args)...); env->CallStaticVoidMethod(entry_class_, mid, lsplant::UnwrapScope(std::forward<Args>(args))...);
} else { } else {
LOGE("method {} id is null", method_name); LOGE("method {} id is null", method_name);
} }