sc/source/core/tool/address.cxx | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-)
New commits: commit 19b7008d14ca106fdddcefaa1c43ac05ba49fd2c Author: Caolán McNamara <caol...@redhat.com> AuthorDate: Mon Dec 12 10:19:36 2022 +0000 Commit: Xisco Fauli <xiscofa...@libreoffice.org> CommitDate: Mon Dec 12 14:53:09 2022 +0000 crashtesting: assert seen on loading forum-mso-en4-497867.xlsx Change-Id: Ifa5e2711981097a648d7127d2dc777bc96b04edb Reviewed-on: https://gerrit.libreoffice.org/c/core/+/143967 Tested-by: Jenkins Reviewed-by: Xisco Fauli <xiscofa...@libreoffice.org> diff --git a/sc/source/core/tool/address.cxx b/sc/source/core/tool/address.cxx index ca1010a393bd..a1e93472f2c4 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)