sc/source/core/tool/interpr1.cxx | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-)
New commits: commit 202de88b10cf0b7ba16a3c767865a386f04c355f Author: Caolán McNamara <caolan.mcnam...@collabora.com> AuthorDate: Mon Jan 6 15:01:00 2025 +0000 Commit: Caolán McNamara <caolan.mcnam...@collabora.com> CommitDate: Mon Jan 6 17:14:41 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> 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);