qt6-bb10/tests/auto/corelib/kernel/qjniobject
Assam Boudjelthia 0a45996376 JNI: check for pending exception first in getCleanJniObject()
returning early if the object is null will not clear pending exceptions
from the previous failed JNI call, and that will crash the app on the
next jni call if an explicit exception clearing is not done, wish mostly
the case. Checking and clearing for exceptions has to always be done
under this call.

Pick-to: 6.7
Fixes: QTBUG-122135
Change-Id: I0d42d012a4d1305fa07147fd22860d7c005f9b83
Reviewed-by: Ville Voutilainen <ville.voutilainen@qt.io>
2024-04-04 19:12:55 +00:00
..
testdata/src/org/qtproject/qt/android/testdata JNI: check for pending exception first in getCleanJniObject() 2024-04-04 19:12:55 +00:00
CMakeLists.txt CMake: Make corelib tests standalone projects 2023-07-05 15:09:32 +02:00
tst_qjniobject.cpp JNI: check for pending exception first in getCleanJniObject() 2024-04-04 19:12:55 +00:00