[Libreoffice-commits] core.git: Branch 'libreoffice-4-2' - sc/source
Markus Mohrhard
markus.mohrhard at collabora.co.uk
Wed Jun 11 07:21:50 PDT 2014
sc/source/filter/excel/xecontent.cxx | 2 +-
1 file changed, 1 insertion(+), 1 deletion(-)
New commits:
commit 27f4335d431f8274a625424114d33d3134ad213e
Author: Markus Mohrhard <markus.mohrhard at collabora.co.uk>
Date: Sun Jun 8 06:13:40 2014 +0200
check for empty string before accessing first element
E.g. fdo#64530-1.xlsx
Change-Id: Iff2d026f6e876ab76c9b89b8200413d6c3a7a0e3
Reviewed-on: https://gerrit.libreoffice.org/9717
Reviewed-by: Caolán McNamara <caolanm at redhat.com>
Tested-by: Caolán McNamara <caolanm at redhat.com>
diff --git a/sc/source/filter/excel/xecontent.cxx b/sc/source/filter/excel/xecontent.cxx
index 7ebf959..bb31056 100644
--- a/sc/source/filter/excel/xecontent.cxx
+++ b/sc/source/filter/excel/xecontent.cxx
@@ -410,7 +410,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 ) );
More information about the Libreoffice-commits
mailing list