Kaydet (Commit) 1fb38674 authored tarafından Caolán McNamara's avatar Caolán McNamara

coverity#1267674 Dereference after null check

Change-Id: I735e95a25b32d11b58ab3b187bfaac41b2f91e10
üst 4ad4540e
......@@ -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()
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment