diff options
author | Caolán McNamara <caolanm@redhat.com> | 2023-04-17 09:17:43 +0100 |
---|---|---|
committer | Caolán McNamara <caolanm@redhat.com> | 2023-04-17 17:03:17 +0200 |
commit | 7773932ba7c4bafeed7fba0a5d87f75eed09f850 (patch) | |
tree | a2d79eed2ae42d45cfb2e28d946ff192449ed3b7 /sc | |
parent | d405ddce1fca35e088d35805345571687c46ff5f (diff) |
tdf#151560 don't crash on loading dubious fods
Change-Id: Ib41b3a95dd3829e8d3eca61621257fdd416bd8dc
Reviewed-on: https://gerrit.libreoffice.org/c/core/+/150483
Tested-by: Jenkins
Reviewed-by: Caolán McNamara <caolanm@redhat.com>
Diffstat (limited to 'sc')
-rw-r--r-- | sc/source/filter/xml/xmlcelli.cxx | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/sc/source/filter/xml/xmlcelli.cxx b/sc/source/filter/xml/xmlcelli.cxx index dbbfccf5a5a0..c2841fa33c7f 100644 --- a/sc/source/filter/xml/xmlcelli.cxx +++ b/sc/source/filter/xml/xmlcelli.cxx @@ -1493,7 +1493,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); } |