mirror of
https://github.com/yawut/SDL.git
synced 2026-06-15 05:00:35 -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:
parent
03425cf382
commit
d3c8a17a2d
|
|
@ -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…
Reference in New Issue
Block a user