diff options
author | Markus Mohrhard <markus.mohrhard@googlemail.com> | 2011-08-02 21:19:52 +0200 |
---|---|---|
committer | Kohei Yoshida <kyoshida@novell.com> | 2011-08-02 15:52:28 -0400 |
commit | 57918a52375a9a7c6ee42072783cb2e29db8e609 (patch) | |
tree | 4e4f7b4d90679473e3db2f76be8738d905f3ea0e | |
parent | ded6d11495f0a3fc57918f9699b1ce8fb5c22a0a (diff) |
fix for fdo#39728: check for empty local range names
Signed-off-by: Kohei Yoshida <kyoshida@novell.com>
-rw-r--r-- | sc/source/core/tool/compiler.cxx | 4 |
1 files changed, 3 insertions, 1 deletions
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(); |