Kaydet (Commit) 227d87d8 authored tarafından Caolán McNamara's avatar Caolán McNamara

coverity#1242476 Dereference null return value

Change-Id: I1895537459bca9341d1e97bad7ca38813bdfa2fe
üst 1c53c506
...@@ -2997,7 +2997,7 @@ void SdrObject::impl_setUnoShape( const uno::Reference< uno::XInterface >& _rxUn ...@@ -2997,7 +2997,7 @@ void SdrObject::impl_setUnoShape( const uno::Reference< uno::XInterface >& _rxUn
// I think this may never happen... But I am not sure enough .-) // I think this may never happen... But I am not sure enough .-)
if ( bTransferOwnership ) if ( bTransferOwnership )
{ {
if ( _rxUnoShape.is() ) if (mpSvxShape)
mpSvxShape->TakeSdrObjectOwnership(); mpSvxShape->TakeSdrObjectOwnership();
SAL_WARN( "svx.uno", "a UNO shape took over an SdrObject previously owned by another UNO shape!"); SAL_WARN( "svx.uno", "a UNO shape took over an SdrObject previously owned by another UNO shape!");
} }
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment