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:
parent
ad7e95531d
commit
9f4dd488e7
1 changed files with 2 additions and 1 deletions
|
@ -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);
|
||||
|
|
Loading…
Reference in a new issue