oox/source/ppt/slidepersist.cxx | 2 ++ 1 file changed, 2 insertions(+)
New commits: commit e8157e60561b950f6a7d8a577145f034912e742d Author: Caolán McNamara <caol...@redhat.com> AuthorDate: Sun Apr 17 12:14:17 2022 +0100 Commit: Caolán McNamara <caol...@redhat.com> CommitDate: Sun Apr 17 14:33:05 2022 +0200 ofz: Null-dereference Change-Id: Ib058458860f606736455ae997a6f7f74de5585bf Reviewed-on: https://gerrit.libreoffice.org/c/core/+/133104 Tested-by: Jenkins Reviewed-by: Caolán McNamara <caol...@redhat.com> diff --git a/oox/source/ppt/slidepersist.cxx b/oox/source/ppt/slidepersist.cxx index e90f2365fefc..bd7f32b5ef14 100644 --- a/oox/source/ppt/slidepersist.cxx +++ b/oox/source/ppt/slidepersist.cxx @@ -361,6 +361,8 @@ void SlidePersist::createConnectorShapeConnection() { OUString aDestShapeId = aConnectorShapeProperties[j].maDestShapeId; const auto& pShape = maShapeMap.find(aDestShapeId); + if (pShape == maShapeMap.end()) + continue; uno::Reference<drawing::XShape> xShape(pShape->second->getXShape(), uno::UNO_QUERY); uno::Reference<beans::XPropertySet> xSet(xShape, uno::UNO_QUERY); if (xShape.is())