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>
This commit is contained in:
Caolán McNamara
2022-04-17 12:14:17 +01:00
parent c69db531ed
commit e8157e6056

View File

@@ -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())