summaryrefslogtreecommitdiff
path: root/connectivity
diff options
context:
space:
mode:
authorNoel Grandin <noel@peralex.com>2014-10-03 16:00:30 +0200
committerNoel Grandin <noel@peralex.com>2014-10-03 16:00:30 +0200
commit8f539e3f711d6253e65180f6c0f9567e5247a322 (patch)
treeb06ab3e10ae7cd010dc628e5f0afe8e4c8fe8fa7 /connectivity
parent0a6f6cb0912bfd3609826daba62418d6ee179cf3 (diff)
cid#704588 Dereference after null check
Change-Id: If84e072da9e59140466262fbeac4dc787a9de898
Diffstat (limited to 'connectivity')
-rw-r--r--connectivity/source/drivers/jdbc/JConnection.cxx2
1 files changed, 1 insertions, 1 deletions
diff --git a/connectivity/source/drivers/jdbc/JConnection.cxx b/connectivity/source/drivers/jdbc/JConnection.cxx
index b1e17770e2d6..a9b8ef9c6c03 100644
--- a/connectivity/source/drivers/jdbc/JConnection.cxx
+++ b/connectivity/source/drivers/jdbc/JConnection.cxx
@@ -718,7 +718,7 @@ void java_sql_Connection::loadDriverFromProperties( const OUString& _sDriverClas
ThrowLoggedSQLException( m_aLogger, t.pEnv, *this );
m_pDriverobject = driverObject.release();
- if( t.pEnv && m_pDriverobject )
+ if( m_pDriverobject )
m_pDriverobject = t.pEnv->NewGlobalRef( m_pDriverobject );
{