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

coverity#1268301 Dereference null return value

Change-Id: I487009503866b6910049824efab987066dd72023
üst 5b24b4b9
...@@ -446,7 +446,7 @@ ShapeExport& ShapeExport::WriteCustomShape( Reference< XShape > xShape ) ...@@ -446,7 +446,7 @@ ShapeExport& ShapeExport::WriteCustomShape( Reference< XShape > xShape )
else if( bHasHandles ) else if( bHasHandles )
bCustGeom = true; bCustGeom = true;
if( bCustGeom ) if (bCustGeom && pShape)
{ {
basegfx::B2DPolyPolygon aB2DPolyPolygon = pShape->GetLineGeometry(true); basegfx::B2DPolyPolygon aB2DPolyPolygon = pShape->GetLineGeometry(true);
tools::PolyPolygon aPolyPolygon; tools::PolyPolygon aPolyPolygon;
......
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