diff options
Diffstat (limited to 'sc/source/filter/lotus')
-rw-r--r-- | sc/source/filter/lotus/tool.cxx | 7 |
1 files changed, 4 insertions, 3 deletions
diff --git a/sc/source/filter/lotus/tool.cxx b/sc/source/filter/lotus/tool.cxx index dabbd05dcd03..2c0a0f7465e9 100644 --- a/sc/source/filter/lotus/tool.cxx +++ b/sc/source/filter/lotus/tool.cxx @@ -480,9 +480,10 @@ bool RangeNameBufferWK3::FindRel( const OUString& rRef, sal_uInt16& rIndex ) bool RangeNameBufferWK3::FindAbs( const OUString& rRef, sal_uInt16& rIndex ) { - OUString aTmp( rRef ); - aTmp = aTmp.copy(1); - StringHashEntry aRef( aTmp ); // search w/o '$'! + if (rRef.isEmpty()) + return false; + OUString aTmp(rRef.copy(1)); + StringHashEntry aRef(aTmp); // search w/o '$'! std::vector<Entry>::iterator itr = std::find_if(maEntries.begin(), maEntries.end(), [&aRef](const Entry& rEntry) { return aRef == rEntry.aStrHashEntry; }); |