summaryrefslogtreecommitdiff
path: root/oox
diff options
context:
space:
mode:
authorCaolán McNamara <caolanm@redhat.com>2022-04-17 12:14:17 +0100
committerCaolán McNamara <caolanm@redhat.com>2022-04-17 14:33:05 +0200
commite8157e60561b950f6a7d8a577145f034912e742d (patch)
tree266dff9b4df1fc4c48ac066bac2d55fea29a9e0f /oox
parentc69db531ede119b950fbe1f35560f94e762e1070 (diff)
ofz: Null-dereference
Change-Id: Ib058458860f606736455ae997a6f7f74de5585bf Reviewed-on: https://gerrit.libreoffice.org/c/core/+/133104 Tested-by: Jenkins Reviewed-by: Caolán McNamara <caolanm@redhat.com>
Diffstat (limited to 'oox')
-rw-r--r--oox/source/ppt/slidepersist.cxx2
1 files changed, 2 insertions, 0 deletions
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())