From 6ced1460180d61c647d2ae91e719e8598ca71b94 Mon Sep 17 00:00:00 2001 From: Nullptr <52071314+Dr-TSNG@users.noreply.github.com> Date: Sun, 10 Jul 2022 23:01:02 +0800 Subject: [PATCH] Let it crash (#2030) --- core/src/main/jni/include/context.h | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/core/src/main/jni/include/context.h b/core/src/main/jni/include/context.h index 823da438..59bd29d5 100644 --- a/core/src/main/jni/include/context.h +++ b/core/src/main/jni/include/context.h @@ -109,7 +109,7 @@ namespace lspd { } jmethodID mid = lsplant::JNI_GetStaticMethodID(env, entry_class_, method_name, method_sig); if (mid) [[likely]] { - lsplant::JNI_CallStaticVoidMethod(env, entry_class_, mid, std::forward(args)...); + env->CallStaticVoidMethod(entry_class_, mid, lsplant::UnwrapScope(std::forward(args))...); } else { LOGE("method {} id is null", method_name); }