From 57918a52375a9a7c6ee42072783cb2e29db8e609 Mon Sep 17 00:00:00 2001 From: Markus Mohrhard Date: Tue, 2 Aug 2011 21:19:52 +0200 Subject: fix for fdo#39728: check for empty local range names Signed-off-by: Kohei Yoshida --- sc/source/core/tool/compiler.cxx | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/sc/source/core/tool/compiler.cxx b/sc/source/core/tool/compiler.cxx index b61b14668..9f3935870 100644 --- a/sc/source/core/tool/compiler.cxx +++ b/sc/source/core/tool/compiler.cxx @@ -2895,7 +2895,9 @@ sal_Bool ScCompiler::IsNamedRange( const String& rUpperName ) // try local names first bool bGlobal = false; ScRangeName* pRangeName = pDoc->GetRangeName(aPos.Tab()); - const ScRangeData* pData = pRangeName->findByUpperName(rUpperName); + const ScRangeData* pData = NULL; + if (pRangeName) + pData = pRangeName->findByUpperName(rUpperName); if (!pData) { pRangeName = pDoc->GetRangeName(); -- cgit v1.2.3