sc/source/filter/excel/xecontent.cxx | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-)
New commits: commit 27f4335d431f8274a625424114d33d3134ad213e Author: Markus Mohrhard <markus.mohrh...@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 <caol...@redhat.com> Tested-by: Caolán McNamara <caol...@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 ) );
_______________________________________________ Libreoffice-commits mailing list libreoffice-comm...@lists.freedesktop.org http://lists.freedesktop.org/mailman/listinfo/libreoffice-commits