WaE: C6011 Dereferencing NULL pointer warnings

Change-Id: I613c77b9aa34433fab9cfaee83d7468cbf5971d9
Reviewed-on: https://gerrit.libreoffice.org/c/core/+/167644
Tested-by: Jenkins
Reviewed-by: Caolán McNamara <caolan.mcnamara@collabora.com>
This commit is contained in:
Caolán McNamara 2024-05-14 21:04:43 +01:00
parent ad7e95531d
commit 9f4dd488e7

View file

@ -104,7 +104,8 @@ void java_sql_ResultSet::disposing()
::osl::MutexGuard aGuard(m_aMutex);
if( object )
{
SDBThreadAttach t; OSL_ENSURE(t.pEnv,"Java environment has been deleted!");
SDBThreadAttach t;
assert(t.pEnv && "Java environment has been deleted!");
static jmethodID mID(nullptr);
callVoidMethod_ThrowSQL("close", mID);
clearObject(*t.pEnv);