From a83f0c98610bae4eac5cdaf87eddfbeb3a3388f4 Mon Sep 17 00:00:00 2001 From: Caolán McNamara Date: Sat, 21 Jan 2017 15:52:04 +0000 Subject: coverity#1399027 Dereference after null check Change-Id: I6006e98ea45a8326899c0afb7c39b0062fd27220 --- sfx2/source/dialog/tabdlg.cxx | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/sfx2/source/dialog/tabdlg.cxx b/sfx2/source/dialog/tabdlg.cxx index d3efaaee90db..19b898572ae2 100644 --- a/sfx2/source/dialog/tabdlg.cxx +++ b/sfx2/source/dialog/tabdlg.cxx @@ -1169,7 +1169,7 @@ IMPL_LINK( SfxTabDialog, DeactivatePageHdl, TabControl *, pTabCtrl, bool ) else nRet = pPage->DeactivatePage( nullptr ); if ( ( DeactivateRC::LeavePage & nRet ) == DeactivateRC::LeavePage && - aTmp.Count() ) + aTmp.Count() && m_pExampleSet) { m_pExampleSet->Put( aTmp ); m_pOutSet->Put( aTmp ); -- cgit