diff options
author | Caolán McNamara <caolanm@redhat.com> | 2023-03-21 13:29:23 +0000 |
---|---|---|
committer | Caolán McNamara <caolanm@redhat.com> | 2023-03-21 15:42:28 +0000 |
commit | 5ccbdcf182851375486386c0df8bb3f04cf2f9cd (patch) | |
tree | 716c18e88b61bdf118286245f484d67f05212ddc /sc | |
parent | b46defbc331c3c91553bc8967cdf48eacea87afd (diff) |
crashreporting: CreateEmbeddedObject might fail
Change-Id: I0e1ccbea92343d18e5ff3a9af1f54ed5e0dd796b
Reviewed-on: https://gerrit.libreoffice.org/c/core/+/149216
Tested-by: Jenkins
Reviewed-by: Caolán McNamara <caolanm@redhat.com>
Diffstat (limited to 'sc')
-rw-r--r-- | sc/source/filter/excel/xiescher.cxx | 3 |
1 files changed, 3 insertions, 0 deletions
diff --git a/sc/source/filter/excel/xiescher.cxx b/sc/source/filter/excel/xiescher.cxx index 9647ca5565ba..718f464e0c9c 100644 --- a/sc/source/filter/excel/xiescher.cxx +++ b/sc/source/filter/excel/xiescher.cxx @@ -1763,6 +1763,9 @@ rtl::Reference<SdrObject> XclImpChartObj::DoCreateSdrObj( XclImpDffConverter& rD Reference< XEmbeddedObject > xEmbObj = pDocShell->GetEmbeddedObjectContainer(). CreateEmbeddedObject( SvGlobalName( SO3_SCH_CLASSID ).GetByteSequence(), aEmbObjName, &sBaseURL ); + if (!xEmbObj) + return xSdrObj; + /* Set the size to the embedded object, this prevents that font sizes of text objects are changed in the chart when the object is inserted into the draw page. */ |