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

coverity#1226485 Dereference null return value

Change-Id: Ib875f26170b90416e2ab1c498d93fb727d9633ce
üst 2529a364
......@@ -1056,10 +1056,11 @@ css::uno::Reference<css::uno::XInterface> SdXImpressDocument::create(
}
uno::Reference< drawing::XShape > xShape( xRet, uno::UNO_QUERY );
if( xShape.is() )
SvxShape* pShape = xShape.is() ? SvxShape::getImplementation(xShape) : NULL;
if (pShape)
{
xRet.clear();
new SdXShape( SvxShape::getImplementation( xShape ), (SdXImpressDocument*)this );
new SdXShape( pShape, (SdXImpressDocument*)this );
xRet = xShape;
xShape.clear();
}
......
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