From e4cfd04df6ba8f368bac063a71a7943c43d97c5a Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Caol=C3=A1n=20McNamara?= Date: Sun, 23 Feb 2014 12:35:13 +0000 Subject: [PATCH] coverity#440977 Dereference after null check Change-Id: I8350641f3b07e8a25080d4dfe7d9c212f89dd992 --- sfx2/source/doc/objstor.cxx | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) 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" ) );