Skip to content
This repository has been archived by the owner on Feb 11, 2021. It is now read-only.

Commit

Permalink
Called method on wrong object in Android exception handler.
Browse files Browse the repository at this point in the history
Fixes Bugzilla #1297.

Thanks to jon @ rafkind for the patch!
  • Loading branch information
icculus committed Sep 1, 2011
1 parent 054f38d commit 3c611dc
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/core/android/SDL_android.cpp
Expand Up @@ -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(
Expand Down

0 comments on commit 3c611dc

Please sign in to comment.