summaryrefslogtreecommitdiff
path: root/connectivity
diff options
context:
space:
mode:
authorCaolán McNamara <caolanm@redhat.com>2015-01-31 19:04:05 +0000
committerCaolán McNamara <caolanm@redhat.com>2015-01-31 19:04:05 +0000
commit1fb386749d9f9c599a08edcaef7848c82c95a38f (patch)
tree831e5868a133f245f93bc88233a6b71a1e28c5e5 /connectivity
parent4ad4540e33c431a8b4b5b1692cee3432de88b3f1 (diff)
coverity#1267674 Dereference after null check
Change-Id: I735e95a25b32d11b58ab3b187bfaac41b2f91e10
Diffstat (limited to 'connectivity')
-rw-r--r--connectivity/source/drivers/file/FResultSet.cxx11
1 files changed, 4 insertions, 7 deletions
diff --git a/connectivity/source/drivers/file/FResultSet.cxx b/connectivity/source/drivers/file/FResultSet.cxx
index afc9d96b95fa..1394f9361047 100644
--- a/connectivity/source/drivers/file/FResultSet.cxx
+++ b/connectivity/source/drivers/file/FResultSet.cxx
@@ -1676,13 +1676,10 @@ Reference< ::com::sun::star::beans::XPropertySetInfo > SAL_CALL OResultSet::getP
void OResultSet::doTableSpecials(const OSQLTable& _xTable)
{
- Reference< ::com::sun::star::lang::XUnoTunnel> xTunnel(_xTable,UNO_QUERY);
- if(xTunnel.is())
- {
- m_pTable = reinterpret_cast< OFileTable* >( xTunnel->getSomething(OFileTable::getUnoTunnelImplementationId()) );
- if(m_pTable)
- m_pTable->acquire();
- }
+ Reference<css::lang::XUnoTunnel> xTunnel(_xTable, UNO_QUERY_THROW);
+ m_pTable = reinterpret_cast< OFileTable* >(xTunnel->getSomething(OFileTable::getUnoTunnelImplementationId()));
+ assert(m_pTable);
+ m_pTable->acquire();
}
void OResultSet::clearInsertRow()