From f28d59c33513598728d72eacfde77e521e7ec056 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Caol=C3=A1n=20McNamara?= Date: Sat, 7 Feb 2015 13:59:26 +0000 Subject: [PATCH] coverity#1268301 Dereference null return value Change-Id: I487009503866b6910049824efab987066dd72023 --- oox/source/export/shapes.cxx | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/oox/source/export/shapes.cxx b/oox/source/export/shapes.cxx index 64a0e3f121cc..e0082620c003 100644 --- a/oox/source/export/shapes.cxx +++ b/oox/source/export/shapes.cxx @@ -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;