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

coverity#1226487 Dereference null return value

Change-Id: Icbdf4f4b1739a63aa02260ddc3b29097cb157b63
üst b1f80f1e
......@@ -1469,8 +1469,12 @@ Reference< drawing::XShape > SdGenericDrawPage::_CreateShape(SdrObject *pObj) c
pShape->SetShapeType( aShapeType );
}
// SdXShape aggregates SvxShape
new SdXShape( SvxShape::getImplementation( xShape ), GetModel() );
SvxShape *pSdShape = SvxShape::getImplementation(xShape);
if (pSdShape)
{
// SdXShape aggregates SvxShape
new SdXShape(pSdShape, GetModel());
}
return xShape;
}
else
......
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