sc/source/core/tool/interpr1.cxx |    4 +++-
 1 file changed, 3 insertions(+), 1 deletion(-)

New commits:
commit 791bce14b10a27da2a4172865b9ba260fa3da098
Author:     Caolán McNamara <caolan.mcnam...@collabora.com>
AuthorDate: Mon Jan 6 15:01:00 2025 +0000
Commit:     Xisco Fauli <xiscofa...@libreoffice.org>
CommitDate: Tue Jan 7 09:54:40 2025 +0100

    crashtesting: assert on reimport of forum-mso-en4-29087.ods
    
    conversion of xlsx to ods and reload
    
    Change-Id: I8f1f10520e3601326405acd90a310ebd6163ffbe
    Reviewed-on: https://gerrit.libreoffice.org/c/core/+/179834
    Tested-by: Jenkins
    Reviewed-by: Caolán McNamara <caolan.mcnam...@collabora.com>
    (cherry picked from commit 202de88b10cf0b7ba16a3c767865a386f04c355f)
    Reviewed-on: https://gerrit.libreoffice.org/c/core/+/179836
    Reviewed-by: Xisco Fauli <xiscofa...@libreoffice.org>

diff --git a/sc/source/core/tool/interpr1.cxx b/sc/source/core/tool/interpr1.cxx
index 2116cab1297f..d3af5a51f8a4 100644
--- a/sc/source/core/tool/interpr1.cxx
+++ b/sc/source/core/tool/interpr1.cxx
@@ -10207,7 +10207,9 @@ void ScInterpreter::ScIndex()
                     SetError(FormulaError::IllegalArgument);
                 sal_uInt16 nOldSp = sp;
                 ScMatrixRef pMat = GetMatrix();
-                if (pMat)
+                if (!pMat)
+                    PushError(FormulaError::NoRef);
+                else
                 {
                     SCSIZE nC, nR;
                     pMat->GetDimensions(nC, nR);

Reply via email to