summaryrefslogtreecommitdiff
path: root/sc
diff options
context:
space:
mode:
authorCaolán McNamara <caolanm@redhat.com>2023-03-21 13:29:23 +0000
committerMichael Stahl <michael.stahl@allotropia.de>2023-03-22 11:18:12 +0000
commit2cc892527f5455a06dba637bcb2f60163894bc13 (patch)
treeb017debfe28b85175e4b64be206eb7b68bcd16cb /sc
parentcf046bed1fde2bdf79e377a9081ed3b260d6aa32 (diff)
crashreporting: CreateEmbeddedObject might fail
Change-Id: I0e1ccbea92343d18e5ff3a9af1f54ed5e0dd796b Reviewed-on: https://gerrit.libreoffice.org/c/core/+/149113 Tested-by: Jenkins Reviewed-by: Xisco Fauli <xiscofauli@libreoffice.org> (cherry picked from commit 130e002051d2f57d1518f8ce89dd2db76be8a6a9) Reviewed-on: https://gerrit.libreoffice.org/c/core/+/149241 Reviewed-by: Caolán McNamara <caolanm@redhat.com> Tested-by: Michael Stahl <michael.stahl@allotropia.de> Reviewed-by: Michael Stahl <michael.stahl@allotropia.de>
Diffstat (limited to 'sc')
-rw-r--r--sc/source/filter/excel/xiescher.cxx3
1 files changed, 3 insertions, 0 deletions
diff --git a/sc/source/filter/excel/xiescher.cxx b/sc/source/filter/excel/xiescher.cxx
index 7940758bffc5..2838347b3f14 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. */