No issue: Fixes home crash if url host is malformed
parent
2035be8cc6
commit
f912621bc3
|
@ -40,6 +40,8 @@ fun String?.urlToTrimmedHost(): String {
|
||||||
else -> url.host
|
else -> url.host
|
||||||
}
|
}
|
||||||
} catch (e: MalformedURLException) {
|
} catch (e: MalformedURLException) {
|
||||||
""
|
this.urlToHost()
|
||||||
|
} catch (e: StringIndexOutOfBoundsException) {
|
||||||
|
this.urlToHost()
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
Loading…
Reference in New Issue