coverity#440977 Dereference after null check

Change-Id: I8350641f3b07e8a25080d4dfe7d9c212f89dd992
This commit is contained in:
Caolán McNamara 2014-02-23 12:35:13 +00:00
parent 675ff51f2e
commit e4cfd04df6

View File

@ -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" ) );