summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorCaolán McNamara <caolanm@redhat.com>2023-03-21 13:29:23 +0000
committerXisco Fauli <xiscofauli@libreoffice.org>2023-03-22 07:43:45 +0000
commit9374b5049ee4fb425b350489272b9354075240dc (patch)
tree0ac61b612b4a84fe0e973d6463d860b021011488
parent9cb9bda78a7e47c4948e6ef2702f07460b22050a (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 fa1760d0c7ac8b9fb2e88f7d6d7f9de14479cbf6) Reviewed-on: https://gerrit.libreoffice.org/c/core/+/149245
-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 1337e909d1ff..1de9da95dd6b 100644
--- a/sc/source/filter/excel/xiescher.cxx
+++ b/sc/source/filter/excel/xiescher.cxx
@@ -1763,6 +1763,9 @@ SdrObjectUniquePtr XclImpChartObj::DoCreateSdrObj( XclImpDffConverter& rDffConv,
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. */