oox/source/export/shapes.cxx | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-)
New commits: commit af9ce10c5be501c143fa18d94f6cc45785a061b6 Author: Xisco Fauli <xiscofa...@libreoffice.org> AuthorDate: Wed Jul 5 09:55:18 2023 +0200 Commit: Michael Stahl <michael.st...@allotropia.de> CommitDate: Thu Jul 6 11:45:14 2023 +0200 oox: fix crash in lcl_GetGluePointId See https://crashreport.libreoffice.org/stats/signature/static%20long%20oox::drawingml::lcl_GetGluePointId(const%20class%20com::sun::star::uno::Reference%3Ccom::sun::star::drawing::XShape%3E%20&%20const,%20long) Regression from b7c542b5085374f1d031183cb86ceeefcf24964d "tdf#154363 sd: fix line connectors regression of mirrored shapes" Change-Id: I926d32f5b68582df588c28a800b0ec10e7e3e19f Reviewed-on: https://gerrit.libreoffice.org/c/core/+/154021 Reviewed-by: Caolán McNamara <caolan.mcnam...@collabora.com> Tested-by: Jenkins Reviewed-by: Xisco Fauli <xiscofa...@libreoffice.org> (cherry picked from commit 66fbe1fcc36b7ac67c4b06d7917705cd1171c2ea) Reviewed-on: https://gerrit.libreoffice.org/c/core/+/154031 Reviewed-by: Michael Stahl <michael.st...@allotropia.de> diff --git a/oox/source/export/shapes.cxx b/oox/source/export/shapes.cxx index a181f4d45db5..7431e7091967 100644 --- a/oox/source/export/shapes.cxx +++ b/oox/source/export/shapes.cxx @@ -1672,7 +1672,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;