diff options
author | Caolán McNamara <caolanm@redhat.com> | 2015-02-14 20:13:19 +0000 |
---|---|---|
committer | Caolán McNamara <caolanm@redhat.com> | 2015-02-14 21:32:00 +0000 |
commit | 142df15e950cab713e061a3b46dae667a0010284 (patch) | |
tree | c111f92794339211037122f08b8a30d0c8d8909f | |
parent | f0ee8ed43528b17e9ea6d83388fbaab0a645b677 (diff) |
coverity#1267643 Logically dead code
Change-Id: Ib55dc6c32ec37fe022d268129de12567652c96ba
-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 773ae341751d..2d5f88d60bf0 100644 --- a/sfx2/source/dialog/tabdlg.cxx +++ b/sfx2/source/dialog/tabdlg.cxx @@ -1103,9 +1103,11 @@ IMPL_LINK( SfxTabDialog, ActivatePageHdl, TabControl *, pTabCtrl ) pDataObject = Find(pImpl->aData, nId); } - assert(pDataObject); //Id not known if (!pDataObject) + { + SAL_WARN("sfx.config", "Tab Page ID not known, this is pretty serious and needs investigation"); return 0; + } // Create TabPage if possible: if ( !pTabPage ) |