diff options
author | Caolán McNamara <caolanm@redhat.com> | 2022-12-12 10:19:36 +0000 |
---|---|---|
committer | Caolán McNamara <caolanm@redhat.com> | 2022-12-12 12:51:29 +0000 |
commit | c0f61ec33be9b76116495907e4874aaae5990088 (patch) | |
tree | bc6c4c95633dd84b7b9f64f55d82bc80cefa925b | |
parent | baddc742c3fe260d20d7924ab134f0fbf179fd85 (diff) |
crashtesting: assert seen on loading forum-mso-en4-497867.xlsx
Change-Id: Ifa5e2711981097a648d7127d2dc777bc96b04edb
Reviewed-on: https://gerrit.libreoffice.org/c/core/+/143982
Tested-by: Jenkins
Reviewed-by: Caolán McNamara <caolanm@redhat.com>
-rw-r--r-- | sc/source/core/tool/address.cxx | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/sc/source/core/tool/address.cxx b/sc/source/core/tool/address.cxx index f704290e340d..7bd66f6402e4 100644 --- a/sc/source/core/tool/address.cxx +++ b/sc/source/core/tool/address.cxx @@ -2094,7 +2094,7 @@ static void lcl_Split_DocTab( const ScDocument& rDoc, SCTAB nTab, rDoc.GetName(nTab, rTabName); rDocName.clear(); // External reference, same as in ScCompiler::MakeTabStr() - if ( rTabName[0] == '\'' ) + if (!rTabName.isEmpty() && rTabName[0] == '\'') { // "'Doc'#Tab" sal_Int32 nPos = ScCompiler::GetDocTabPos( rTabName); if (nPos != -1) |