diff options
author | Caolán McNamara <caolanm@redhat.com> | 2014-07-01 16:20:27 +0100 |
---|---|---|
committer | Caolán McNamara <caolanm@redhat.com> | 2014-07-01 16:43:07 +0100 |
commit | 0820f53c0d0211f43bc820b95793c5b868f22a50 (patch) | |
tree | 709a9d0f5f61069e872433f4e1f3e8f5b61ee192 /sfx2 | |
parent | 4d22b8f7b46c6e93f682ac26aee1403cd5288a88 (diff) |
coverity#735850 Dereference after null check
Change-Id: If164a92ed502502ce1b25ecddaa8852e83eb4f3c
Diffstat (limited to 'sfx2')
-rw-r--r-- | sfx2/source/doc/objstor.cxx | 3 |
1 files changed, 1 insertions, 2 deletions
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(); |