summaryrefslogtreecommitdiff
path: root/sc
diff options
context:
space:
mode:
authorMarkus Mohrhard <markus.mohrhard@collabora.co.uk>2014-06-08 06:13:40 +0200
committerMarkus Mohrhard <markus.mohrhard@collabora.co.uk>2014-06-08 07:11:29 +0200
commit0620ca9d81d844452cfe5a65f1416417ac01154d (patch)
treec2475d8e075d2a6652be8990330dcd12c970cc6f /sc
parentf18548eb689d9e5effe0ab7c01639b4d13e2f14d (diff)
check for empty string before accessing first element
E.g. fdo#64530-1.xlsx Change-Id: Iff2d026f6e876ab76c9b89b8200413d6c3a7a0e3
Diffstat (limited to 'sc')
-rw-r--r--sc/source/filter/excel/xecontent.cxx2
1 files changed, 1 insertions, 1 deletions
diff --git a/sc/source/filter/excel/xecontent.cxx b/sc/source/filter/excel/xecontent.cxx
index af726b24ade8..ab47be4d5cce 100644
--- a/sc/source/filter/excel/xecontent.cxx
+++ b/sc/source/filter/excel/xecontent.cxx
@@ -404,7 +404,7 @@ XclExpHyperlink::XclExpHyperlink( const XclExpRoot& rRoot, const SvxURLField& rU
msTarget = XclXmlUtils::ToOUString( aUrl );
}
- else if( rUrl[0] == '#' ) // hack for #89066#
+ else if( !rUrl.isEmpty() && rUrl[0] == '#' ) // hack for #89066#
{
OUString aTextMark( rUrl.copy( 1 ) );