summaryrefslogtreecommitdiff
path: root/sc/source
diff options
context:
space:
mode:
authorCaolán McNamara <caolan.mcnamara@collabora.com>2025-01-06 15:01:00 +0000
committerCaolán McNamara <caolan.mcnamara@collabora.com>2025-01-06 17:14:41 +0100
commit202de88b10cf0b7ba16a3c767865a386f04c355f (patch)
tree755bd016ff0608ef158a4c0c230dac431447d1f7 /sc/source
parent7174a1a7b4cd52ad9e9f4fff887821e60e63693f (diff)
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.mcnamara@collabora.com>
Diffstat (limited to 'sc/source')
-rw-r--r--sc/source/core/tool/interpr1.cxx4
1 files changed, 3 insertions, 1 deletions
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);