mirror of
https://github.com/yawut/SDL.git
synced 2026-09-25 09:55:41 -05:00
Called method on wrong object in Android exception handler.
Fixes Bugzilla #1297. Thanks to jon @ rafkind for the patch!
This commit is contained in:
@@ -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(
|
||||
|
||||
Reference in New Issue
Block a user