[core] Check pending exception (#724)

This commit is contained in:
LoveSy 2021-06-03 18:17:15 +08:00 committed by GitHub
parent 9946708dbe
commit 0ad10cf369
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
1 changed files with 1 additions and 0 deletions

View File

@ -40,6 +40,7 @@ namespace art {
inline void
maybeSetTrusted(JNIEnv *env, jclass clazz, jobject class_loader, jobject j_cookie) {
if (env->ExceptionCheck()) return;
static auto get_parent = env->GetMethodID(env->FindClass("java/lang/ClassLoader"),
"getParent", "()Ljava/lang/ClassLoader;");
for (auto current = lspd::Context::GetInstance()->GetCurrentClassLoader();