coverity#440977 Dereference after null check
Change-Id: I8350641f3b07e8a25080d4dfe7d9c212f89dd992
This commit is contained in:
parent
675ff51f2e
commit
e4cfd04df6
@ -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" ) );
|
||||
|
Loading…
x
Reference in New Issue
Block a user