sc/source/filter/excel/xiescher.cxx | 3 +++ 1 file changed, 3 insertions(+)
New commits: commit 9374b5049ee4fb425b350489272b9354075240dc Author: Caolán McNamara <caol...@redhat.com> AuthorDate: Tue Mar 21 13:29:23 2023 +0000 Commit: Xisco Fauli <xiscofa...@libreoffice.org> CommitDate: Wed Mar 22 07:43:45 2023 +0000 crashreporting: CreateEmbeddedObject might fail Change-Id: I0e1ccbea92343d18e5ff3a9af1f54ed5e0dd796b Reviewed-on: https://gerrit.libreoffice.org/c/core/+/149113 Tested-by: Jenkins Reviewed-by: Xisco Fauli <xiscofa...@libreoffice.org> (cherry picked from commit fa1760d0c7ac8b9fb2e88f7d6d7f9de14479cbf6) Reviewed-on: https://gerrit.libreoffice.org/c/core/+/149245 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. */