sc/source/core/tool/address.cxx | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-)
New commits: commit c0f61ec33be9b76116495907e4874aaae5990088 Author: Caolán McNamara <caol...@redhat.com> AuthorDate: Mon Dec 12 10:19:36 2022 +0000 Commit: Caolán McNamara <caol...@redhat.com> CommitDate: Mon Dec 12 12:51:29 2022 +0000 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 <caol...@redhat.com> 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)