coverity#1268301 Dereference null return value

Change-Id: I487009503866b6910049824efab987066dd72023
This commit is contained in:
Caolán McNamara
2015-02-07 13:59:26 +00:00
parent 5b24b4b9d5
commit f28d59c335

View File

@@ -446,7 +446,7 @@ ShapeExport& ShapeExport::WriteCustomShape( Reference< XShape > xShape )
else if( bHasHandles )
bCustGeom = true;
if( bCustGeom )
if (bCustGeom && pShape)
{
basegfx::B2DPolyPolygon aB2DPolyPolygon = pShape->GetLineGeometry(true);
tools::PolyPolygon aPolyPolygon;