diff options
author | Eike Rathke <erack@redhat.com> | 2014-10-31 15:03:02 +0100 |
---|---|---|
committer | Eike Rathke <erack@redhat.com> | 2014-10-31 15:34:22 +0100 |
commit | 36705670efc894094f9f987661fa8022bea2e01b (patch) | |
tree | fe947062783a88f00f131f5a81cd29a0ab973439 /sc/source/ui/docshell | |
parent | 8dbe4f2aebff1bd763e4f44c8f9e2a367316da4b (diff) |
coverity#735811 Dereference after null check
We always have a DB collection.
Change-Id: I8933be3a01b4c2e63b852361d5d2438e6fca4d05
Diffstat (limited to 'sc/source/ui/docshell')
-rw-r--r-- | sc/source/ui/docshell/docsh5.cxx | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/sc/source/ui/docshell/docsh5.cxx b/sc/source/ui/docshell/docsh5.cxx index c1ac7036c9b4..dd6d9f23cda7 100644 --- a/sc/source/ui/docshell/docsh5.cxx +++ b/sc/source/ui/docshell/docsh5.cxx @@ -122,7 +122,7 @@ ScDBData* ScDocShell::GetDBData( const ScRange& rMarked, ScGetDBMode eMode, ScGe // benannter DB-Bereich dort gesucht werden. ScDBCollection* pColl = aDocument.GetDBCollection(); ScDBData* pData = aDocument.GetDBAtArea( nTab, nStartCol, nStartRow, nEndCol, nEndRow ); - if (!pData && pColl) + if (!pData) pData = pColl->GetDBNearCursor(nCol, nRow, nTab ); bool bSelected = ( eSel == SC_DBSEL_FORCE_MARK || |