Skip to content
This repository has been archived by the owner. It is now read-only.
Permalink
Browse files

Called method on wrong object in Android exception handler.

Fixes Bugzilla #1297.

Thanks to jon @ rafkind for the patch!
  • Loading branch information
icculus committed Sep 1, 2011
1 parent 054f38d commit 3c611dcd165d7dede8b0a9a881ca4160e2268ebd
Showing with 1 addition and 1 deletion.
  1. +1 −1 src/core/android/SDL_android.cpp
@@ -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(

0 comments on commit 3c611dc

Please sign in to comment.