diff options
| -rw-r--r-- | runtime/reflection.cc | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/runtime/reflection.cc b/runtime/reflection.cc index 3c64d40720..87bc7df214 100644 --- a/runtime/reflection.cc +++ b/runtime/reflection.cc @@ -671,14 +671,14 @@ jobject InvokeMethod(const ScopedObjectAccessAlreadyRunnable& soa, jobject javaM soa.Self()->ClearException(); jclass exception_class = soa.Env()->FindClass("java/lang/reflect/InvocationTargetException"); if (exception_class == nullptr) { - soa.Self()->AssertPendingOOMException(); + soa.Self()->AssertPendingException(); return nullptr; } jmethodID mid = soa.Env()->GetMethodID(exception_class, "<init>", "(Ljava/lang/Throwable;)V"); CHECK(mid != nullptr); jobject exception_instance = soa.Env()->NewObject(exception_class, mid, th); if (exception_instance == nullptr) { - soa.Self()->AssertPendingOOMException(); + soa.Self()->AssertPendingException(); return nullptr; } soa.Env()->Throw(reinterpret_cast<jthrowable>(exception_instance)); |