From 4d92cbf70c19485f73ddb42795fd768bc56385b9 Mon Sep 17 00:00:00 2001 From: Caolán McNamara Date: Tue, 28 Jan 2014 09:40:53 +0000 Subject: coverity#440971 Dereference before null check Change-Id: I2bd6c0cffef5bf2e2d05781d4ec151f11d517cb6 --- sfx2/source/dialog/templdlg.cxx | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'sfx2') diff --git a/sfx2/source/dialog/templdlg.cxx b/sfx2/source/dialog/templdlg.cxx index 2a971592ea2c..46f32380debf 100644 --- a/sfx2/source/dialog/templdlg.cxx +++ b/sfx2/source/dialog/templdlg.cxx @@ -2083,7 +2083,7 @@ void SfxCommonTemplateDialog_Impl::NewHdl(void *) const SfxStyleFamilyItem *pItem = GetFamilyItem_Impl(); const SfxStyleFamily eFam=pItem->GetFamily(); sal_uInt16 nMask; - if( pItem && nActFilter != SFXSTYLEBIT_ALL ) + if( nActFilter != SFXSTYLEBIT_ALL ) { nMask = pItem->GetFilterList()[ nActFilter ]->nFlags; if(!nMask) // automatic -- cgit