sc/source/filter/xml/xmlcelli.cxx |    2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

New commits:
commit 65572a7ae58b5eafba835b4c0cb16e3cb9188f05
Author:     Caolán McNamara <caol...@redhat.com>
AuthorDate: Mon Apr 17 09:17:43 2023 +0100
Commit:     Xisco Fauli <xiscofa...@libreoffice.org>
CommitDate: Wed Apr 26 13:19:51 2023 +0200

    tdf#151560 don't crash on loading dubious fods
    
    Change-Id: Ib41b3a95dd3829e8d3eca61621257fdd416bd8dc
    Reviewed-on: https://gerrit.libreoffice.org/c/core/+/150498
    Reviewed-by: Michael Stahl <michael.st...@allotropia.de>
    Tested-by: Jenkins
    (cherry picked from commit 4ad3605166c91193b3dbf41ed33515e267133f90)
    Reviewed-on: https://gerrit.libreoffice.org/c/core/+/150554
    Reviewed-by: Xisco Fauli <xiscofa...@libreoffice.org>
    Reviewed-by: Caolán McNamara <caol...@redhat.com>
    Reviewed-by: Eike Rathke <er...@redhat.com>
    Tested-by: Xisco Fauli <xiscofa...@libreoffice.org>

diff --git a/sc/source/filter/xml/xmlcelli.cxx 
b/sc/source/filter/xml/xmlcelli.cxx
index 7ae3aaaa6e35..7288c631f68c 100644
--- a/sc/source/filter/xml/xmlcelli.cxx
+++ b/sc/source/filter/xml/xmlcelli.cxx
@@ -1483,7 +1483,7 @@ bool ScXMLTableRowCellContext::IsPossibleErrorString() 
const
         return false;
     else if(mbNewValueType && mbErrorValue)
         return true;
-    return mbPossibleErrorCell || (mbCheckWithCompilerForError &&
+    return mbPossibleErrorCell || (mbCheckWithCompilerForError && 
maStringValue &&
             GetScImport().GetFormulaErrorConstant(*maStringValue) != 
FormulaError::NONE);
 }
 

Reply via email to