diff options
author | Caolán McNamara <caolanm@redhat.com> | 2015-12-21 14:08:22 +0000 |
---|---|---|
committer | Caolán McNamara <caolanm@redhat.com> | 2015-12-21 21:24:27 +0000 |
commit | 533077e6297c6e779b1218ea852f90b72bf49755 (patch) | |
tree | a280fb3928c41f38b8deee610e3bb979dc62c8e5 /svl/source | |
parent | 77a202cbbf3735a6007ceb09f96f5e9258ef6df2 (diff) |
crashtesting: post NPAPI removal crash fixing
Change-Id: I99d79735c375f3d632382a8efa0202517a293b1f
Diffstat (limited to 'svl/source')
-rw-r--r-- | svl/source/misc/urihelper.cxx | 2 |
1 files changed, 2 insertions, 0 deletions
diff --git a/svl/source/misc/urihelper.cxx b/svl/source/misc/urihelper.cxx index 0746cb221ce3..550d162a695b 100644 --- a/svl/source/misc/urihelper.cxx +++ b/svl/source/misc/urihelper.cxx @@ -738,6 +738,8 @@ OUString URIHelper::resolveIdnaHost(OUString const & url) { return url; } auto auth(uri->getAuthority()); + if (auth.isEmpty()) + return url; sal_Int32 hostStart = auth.indexOf('@') + 1; sal_Int32 hostEnd = auth.getLength() - 1; while (hostEnd > hostStart && rtl::isAsciiDigit(auth[hostEnd])) { |