No issue: Fixes home crash if url host is malformed

nightly-build-test
Sawyer Blatz 5 years ago committed by Jeff Boek
parent 2035be8cc6
commit f912621bc3

@ -40,6 +40,8 @@ fun String?.urlToTrimmedHost(): String {
else -> url.host
}
} catch (e: MalformedURLException) {
""
this.urlToHost()
} catch (e: StringIndexOutOfBoundsException) {
this.urlToHost()
}
}

Loading…
Cancel
Save