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

coverity#440728 Explicit null dereferenced

Change-Id: I76b8d6eb59d2558a7ff8a1b1573f24e41a03b8b6
üst e4c7cfed
......@@ -557,11 +557,9 @@ sal_Bool ODbaseIndex::CreateImpl()
if(xSet->last())
{
Reference< XUnoTunnel> xTunnel(xSet,UNO_QUERY);
ODbaseResultSet* pDbaseRes = NULL;
if(xTunnel.is())
pDbaseRes = reinterpret_cast< ODbaseResultSet* >( xTunnel->getSomething(ODbaseResultSet::getUnoTunnelImplementationId()) );
OSL_ENSURE(pDbaseRes,"No dbase resultset found? What's going on here!");
Reference< XUnoTunnel> xTunnel(xSet, UNO_QUERY_THROW);
ODbaseResultSet* pDbaseRes = reinterpret_cast< ODbaseResultSet* >( xTunnel->getSomething(ODbaseResultSet::getUnoTunnelImplementationId()) );
assert(pDbaseRes); //"No dbase resultset found? What's going on here!
Reference<XRowLocate> xRowLocate(xSet,UNO_QUERY);
nRowsLeft = xSet->getRow();
......
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