summaryrefslogtreecommitdiff
path: root/sc
diff options
context:
space:
mode:
authorCaolán McNamara <caolanm@redhat.com>2015-02-12 15:14:53 +0000
committerCaolán McNamara <caolanm@redhat.com>2015-02-12 15:22:43 +0000
commitf78fa7e9c72ab1bd3e6a19d5234651f379c44a08 (patch)
tree846ee5718b5c1708ddcc239f5f3aff3cd68b82db /sc
parent20bea5c86f793b8e48d12ba487c9dee50792b0bd (diff)
apparently calling match on a string with an index past the end is now fatal
assert on loading ooo55345-1.ppt etc Change-Id: Ie76720e511674ddd883f7e397442a84838c1a1f4
Diffstat (limited to 'sc')
-rw-r--r--sc/source/filter/excel/xihelper.cxx2
1 files changed, 1 insertions, 1 deletions
diff --git a/sc/source/filter/excel/xihelper.cxx b/sc/source/filter/excel/xihelper.cxx
index 3940b63c99e9..01ba6c146eb6 100644
--- a/sc/source/filter/excel/xihelper.cxx
+++ b/sc/source/filter/excel/xihelper.cxx
@@ -623,7 +623,7 @@ void XclImpUrlHelper::DecodeUrl(
sal_Unicode cCurrDrive = 0;
OUString aDosBase( INetURLObject( rRoot.GetBasePath() ).getFSysPath( INetURLObject::FSYS_DOS ) );
- if( aDosBase.match(":\\", 1) )
+ if (!aDosBase.isEmpty() && aDosBase.match(":\\", 1))
cCurrDrive = aDosBase[0];
const sal_Unicode* pChar = rEncodedUrl.getStr();