Android: Use exceptionCheck() function.
This was the only place where we didn't use the exceptionCheck() function. Besides being more consistent, it's also more verbose if an exception occurs. Change-Id: Ib1e3dba82b0730cf189ec725f4da425d7ac85cdc Reviewed-by: Yoann Lopes <yoann.lopes@digia.com>
This commit is contained in:
parent
c54f7720d0
commit
bbdf6a8039
@ -113,10 +113,8 @@ jint QtAndroidPrivate::initJNI(JavaVM *vm, JNIEnv *env)
|
||||
{
|
||||
jclass jQtNative = env->FindClass("org/qtproject/qt5/android/QtNative");
|
||||
|
||||
if (env->ExceptionCheck()) {
|
||||
env->ExceptionClear();
|
||||
if (exceptionCheck(env))
|
||||
return JNI_ERR;
|
||||
}
|
||||
|
||||
jmethodID activityMethodID = env->GetStaticMethodID(jQtNative,
|
||||
"activity",
|
||||
|
Loading…
x
Reference in New Issue
Block a user