sc/source/core/tool/interpr1.cxx | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-)
New commits: commit 78ed494808ccbebc87213863f5619550804f8d0d Author: Caolán McNamara <[email protected]> AuthorDate: Mon Jan 6 15:01:00 2025 +0000 Commit: Miklos Vajna <[email protected]> CommitDate: Mon Jan 13 10:39:38 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 <[email protected]> (cherry picked from commit 202de88b10cf0b7ba16a3c767865a386f04c355f) Reviewed-on: https://gerrit.libreoffice.org/c/core/+/179836 Reviewed-by: Xisco Fauli <[email protected]> (cherry picked from commit 791bce14b10a27da2a4172865b9ba260fa3da098) Reviewed-on: https://gerrit.libreoffice.org/c/core/+/180066 Tested-by: Jenkins CollaboraOffice <[email protected]> Reviewed-by: Miklos Vajna <[email protected]> diff --git a/sc/source/core/tool/interpr1.cxx b/sc/source/core/tool/interpr1.cxx index c6eabab262ea..c18aac464f28 100644 --- a/sc/source/core/tool/interpr1.cxx +++ b/sc/source/core/tool/interpr1.cxx @@ -10010,7 +10010,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);
