Called method on wrong object in Android exception handler.
Fixes Bugzilla #1297. Thanks to jon @ rafkind for the patch!
This commit is contained in:
parent
af022f47ed
commit
a622e7c305
1 changed files with 1 additions and 1 deletions
|
@ -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(
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue