summaryrefslogtreecommitdiff
path: root/sfx2
diff options
context:
space:
mode:
authorCaolán McNamara <caolanm@redhat.com>2014-03-31 09:37:22 +0100
committerCaolán McNamara <caolanm@redhat.com>2014-03-31 09:37:22 +0100
commit835b983d663bcf74f04f9ff6fb7f573779d581e0 (patch)
tree5f676af25d781644513cde72e4a302c2bb4152ec /sfx2
parent487943fcc33db87aa7bc7bfd45e4eb08dd62895b (diff)
coverity#1194909 Dereference after null check
Change-Id: Iaa7cb625e4ce49b51a1585497befb67fda0a2d85
Diffstat (limited to 'sfx2')
-rw-r--r--sfx2/source/dialog/tabdlg.cxx4
1 files changed, 3 insertions, 1 deletions
diff --git a/sfx2/source/dialog/tabdlg.cxx b/sfx2/source/dialog/tabdlg.cxx
index 9952c628666c..751012594869 100644
--- a/sfx2/source/dialog/tabdlg.cxx
+++ b/sfx2/source/dialog/tabdlg.cxx
@@ -1227,7 +1227,9 @@ IMPL_LINK( SfxTabDialog, ActivatePageHdl, TabControl *, pTabCtrl )
pDataObject = Find(pImpl->aData, nId);
}
- DBG_ASSERT( pDataObject, "Id not known" );
+ assert(pDataObject); //Id not known
+ if (!pDataObject)
+ return 0;
// Create TabPage if possible:
if ( !pTabPage )