sc/source/filter/excel/xiescher.cxx |    3 +++
 1 file changed, 3 insertions(+)

New commits:
commit 2cc892527f5455a06dba637bcb2f60163894bc13
Author:     Caolán McNamara <caol...@redhat.com>
AuthorDate: Tue Mar 21 13:29:23 2023 +0000
Commit:     Michael Stahl <michael.st...@allotropia.de>
CommitDate: Wed Mar 22 11:18:12 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 130e002051d2f57d1518f8ce89dd2db76be8a6a9)
    Reviewed-on: https://gerrit.libreoffice.org/c/core/+/149241
    Reviewed-by: Caolán McNamara <caol...@redhat.com>
    Tested-by: Michael Stahl <michael.st...@allotropia.de>
    Reviewed-by: Michael Stahl <michael.st...@allotropia.de>

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. */

Reply via email to