Commit a622e7c3 authored by Ryan C. Gordon's avatar Ryan C. Gordon

Called method on wrong object in Android exception handler.

Fixes Bugzilla #1297.

Thanks to jon @ rafkind for the patch!
parent af022f47
......@@ -277,7 +277,7 @@ static bool Android_JNI_ExceptionOccurred()
const char* exceptionNameUTF8 = mEnv->GetStringUTFChars(exceptionName, 0);
mid = mEnv->GetMethodID(exceptionClass, "getMessage", "()Ljava/lang/String;");
jstring exceptionMessage = (jstring)mEnv->CallObjectMethod(exceptionClass, mid);
jstring exceptionMessage = (jstring)mEnv->CallObjectMethod(exception, mid);
if (exceptionMessage != NULL) {
const char* exceptionMessageUTF8 = mEnv->GetStringUTFChars(
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment