From 0820f53c0d0211f43bc820b95793c5b868f22a50 Mon Sep 17 00:00:00 2001 From: Caolán McNamara Date: Tue, 1 Jul 2014 16:20:27 +0100 Subject: coverity#735850 Dereference after null check Change-Id: If164a92ed502502ce1b25ecddaa8852e83eb4f3c --- sfx2/source/doc/objstor.cxx | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) (limited to 'sfx2') diff --git a/sfx2/source/doc/objstor.cxx b/sfx2/source/doc/objstor.cxx index 3f789e004f5b..377a75804a03 100644 --- a/sfx2/source/doc/objstor.cxx +++ b/sfx2/source/doc/objstor.cxx @@ -1387,8 +1387,7 @@ bool SfxObjectShell::SaveTo_Impl bool bOk = false; // TODO/LATER: get rid of bOk - - if( bOwnTarget && !( pFilter->GetFilterFlags() & SFX_FILTER_STARONEFILTER ) ) + if (bOwnTarget && pFilter && !(pFilter->GetFilterFlags() & SFX_FILTER_STARONEFILTER)) { AddLog( OUString( OSL_LOG_PREFIX "Storing in own format." ) ); uno::Reference< embed::XStorage > xMedStorage = rMedium.GetStorage(); -- cgit