diff options
author | Caolán McNamara <caolanm@redhat.com> | 2015-02-07 13:59:26 +0000 |
---|---|---|
committer | Caolán McNamara <caolanm@redhat.com> | 2015-02-07 14:27:13 +0000 |
commit | f28d59c33513598728d72eacfde77e521e7ec056 (patch) | |
tree | cac58f9037a4657b3187059f9ae510398273bc9b /oox | |
parent | 5b24b4b9d5132a8137d8d80c320cd2551ecef736 (diff) |
coverity#1268301 Dereference null return value
Change-Id: I487009503866b6910049824efab987066dd72023
Diffstat (limited to 'oox')
-rw-r--r-- | oox/source/export/shapes.cxx | 2 |
1 files changed, 1 insertions, 1 deletions
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; |