diff options
| author | Volker Hilsheimer <volker.hilsheimer@qt.io> | 2025-01-03 16:18:09 +0100 |
|---|---|---|
| committer | Volker Hilsheimer <volker.hilsheimer@qt.io> | 2025-01-06 20:38:38 +0100 |
| commit | db6a9834d2b109e81cc73ef3c64d0c420237e9dc (patch) | |
| tree | 23e1284499672d04529444d2d88303ff61d147e4 /src/corelib/thread/qthread.cpp | |
| parent | 0e2656f9371f92db3bb95ee5ba52c44a91e5ce68 (diff) | |
JNI: don't access null jobject
When Java calls a native function that expects a QString with a null
String object, then we get a nullptr jstring. We must not try to convert
that to a QString.
Add the necessary checks at the call-site of the toQString helper, and
an assert to the helper itself. Add test case.
Pick-to: 6.9
Change-Id: If5c55c702bdb3f89ac45fdf3912af2ac295f5e5c
Reviewed-by: Volker Krause <vkrause@kde.org>
Diffstat (limited to 'src/corelib/thread/qthread.cpp')
0 files changed, 0 insertions, 0 deletions
