diff options
author | Caolán McNamara <caolanm@redhat.com> | 2014-02-23 12:35:13 +0000 |
---|---|---|
committer | Caolán McNamara <caolanm@redhat.com> | 2014-02-23 14:22:41 +0000 |
commit | e4cfd04df6ba8f368bac063a71a7943c43d97c5a (patch) | |
tree | 6ede8d1cd3340034a3ccd4356bd65287242a63d4 /sfx2 | |
parent | writerfilter: convert sprm:CF{Caps,SmallCaps,Strike,DStrike} (diff) | |
download | core-e4cfd04df6ba8f368bac063a71a7943c43d97c5a.tar.gz core-e4cfd04df6ba8f368bac063a71a7943c43d97c5a.zip |
coverity#440977 Dereference after null check
Change-Id: I8350641f3b07e8a25080d4dfe7d9c212f89dd992
Diffstat (limited to 'sfx2')
-rw-r--r-- | sfx2/source/doc/objstor.cxx | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/sfx2/source/doc/objstor.cxx b/sfx2/source/doc/objstor.cxx index efe57bd7b2ee..fb80c47c976c 100644 --- a/sfx2/source/doc/objstor.cxx +++ b/sfx2/source/doc/objstor.cxx @@ -1332,7 +1332,7 @@ sal_Bool SfxObjectShell::SaveTo_Impl } // TODO/LATER: error handling - if( rMedium.GetErrorCode() || pMedium->GetErrorCode() || GetErrorCode() ) + if( rMedium.GetErrorCode() || !pMedium || pMedium->GetErrorCode() || GetErrorCode() ) return sal_False; AddLog( OUString( OSL_LOG_PREFIX "Locking" ) ); |