diff options
Diffstat (limited to 'oox')
-rw-r--r-- | oox/source/export/shapes.cxx | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/oox/source/export/shapes.cxx b/oox/source/export/shapes.cxx index 0fc6eb337513..cfc980f95b96 100644 --- a/oox/source/export/shapes.cxx +++ b/oox/source/export/shapes.cxx @@ -1675,7 +1675,8 @@ static sal_Int32 lcl_GetGluePointId(const Reference<XShape>& xShape, sal_Int32 n bool bFlipH = false; bool bFlipV = false; Reference<XPropertySet> xShapeProps(xShape, UNO_QUERY); - if (xShapeProps->getPropertySetInfo()->hasPropertyByName("CustomShapeGeometry")) + if (xShapeProps.is() && xShapeProps->getPropertySetInfo() + && xShapeProps->getPropertySetInfo()->hasPropertyByName("CustomShapeGeometry")) { Sequence<PropertyValue> aGeometrySeq; xShapeProps->getPropertyValue("CustomShapeGeometry") >>= aGeometrySeq; |