Kaydet (Commit) 36705670 authored tarafından Eike Rathke's avatar Eike Rathke

coverity#735811 Dereference after null check

We always have a DB collection.

Change-Id: I8933be3a01b4c2e63b852361d5d2438e6fca4d05
üst 8dbe4f2a
...@@ -122,7 +122,7 @@ ScDBData* ScDocShell::GetDBData( const ScRange& rMarked, ScGetDBMode eMode, ScGe ...@@ -122,7 +122,7 @@ ScDBData* ScDocShell::GetDBData( const ScRange& rMarked, ScGetDBMode eMode, ScGe
// benannter DB-Bereich dort gesucht werden. // benannter DB-Bereich dort gesucht werden.
ScDBCollection* pColl = aDocument.GetDBCollection(); ScDBCollection* pColl = aDocument.GetDBCollection();
ScDBData* pData = aDocument.GetDBAtArea( nTab, nStartCol, nStartRow, nEndCol, nEndRow ); ScDBData* pData = aDocument.GetDBAtArea( nTab, nStartCol, nStartRow, nEndCol, nEndRow );
if (!pData && pColl) if (!pData)
pData = pColl->GetDBNearCursor(nCol, nRow, nTab ); pData = pColl->GetDBNearCursor(nCol, nRow, nTab );
bool bSelected = ( eSel == SC_DBSEL_FORCE_MARK || bool bSelected = ( eSel == SC_DBSEL_FORCE_MARK ||
......
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