diff options
author | Caolán McNamara <caolanm@redhat.com> | 2014-03-12 10:40:05 +0000 |
---|---|---|
committer | Caolán McNamara <caolanm@redhat.com> | 2014-03-12 11:02:17 +0000 |
commit | aabee84e8c5adf174e7d40586c0c6406960abcbe (patch) | |
tree | e065eae5c5332e749ec6b49f99a2ac23856c914e | |
parent | 17b0d011dafb5053fe8de2819d00ff746798bd77 (diff) |
coverity#704794 Unchecked dynamic_cast
Change-Id: Idbfdfe687ac94f1e1135c8a877a7b133056a875f
-rw-r--r-- | sfx2/source/dialog/tabdlg.cxx | 2 |
1 files changed, 2 insertions, 0 deletions
diff --git a/sfx2/source/dialog/tabdlg.cxx b/sfx2/source/dialog/tabdlg.cxx index 844fcb226db0..65a146743555 100644 --- a/sfx2/source/dialog/tabdlg.cxx +++ b/sfx2/source/dialog/tabdlg.cxx @@ -1295,6 +1295,8 @@ IMPL_LINK( SfxTabDialog, DeactivatePageHdl, TabControl *, pTabCtrl ) SFX_APP(); SfxTabPage *pPage = dynamic_cast<SfxTabPage*> (pTabCtrl->GetTabPage( nId )); DBG_ASSERT( pPage, "no active Page" ); + if (!pPage) + return sal_False; #ifdef DBG_UTIL Data_Impl* pDataObject = Find( pImpl->aData, pTabCtrl->GetCurPageId() ); DBG_ASSERT( pDataObject, "no Data structur for current page" ); |