diff options
author | Caolán McNamara <caolanm@redhat.com> | 2014-03-31 09:37:22 +0100 |
---|---|---|
committer | Caolán McNamara <caolanm@redhat.com> | 2014-03-31 09:37:22 +0100 |
commit | 835b983d663bcf74f04f9ff6fb7f573779d581e0 (patch) | |
tree | 5f676af25d781644513cde72e4a302c2bb4152ec | |
parent | 487943fcc33db87aa7bc7bfd45e4eb08dd62895b (diff) |
coverity#1194909 Dereference after null check
Change-Id: Iaa7cb625e4ce49b51a1585497befb67fda0a2d85
-rw-r--r-- | sfx2/source/dialog/tabdlg.cxx | 4 |
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 ) |