diff options
author | Caolán McNamara <caolanm@redhat.com> | 2022-04-17 12:14:17 +0100 |
---|---|---|
committer | Caolán McNamara <caolanm@redhat.com> | 2022-04-17 14:33:05 +0200 |
commit | e8157e60561b950f6a7d8a577145f034912e742d (patch) | |
tree | 266dff9b4df1fc4c48ac066bac2d55fea29a9e0f | |
parent | c69db531ede119b950fbe1f35560f94e762e1070 (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>
-rw-r--r-- | oox/source/ppt/slidepersist.cxx | 2 |
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()) |