Skip to content
Snippets Groups Projects
Commit b5e1981f authored by John's avatar John
Browse files

Fix issue if HTTP link cannot be parsed

parent 50b73817
No related branches found
No related tags found
No related merge requests found
Loading
Loading
@@ -26,7 +26,11 @@ object DeepLinker {
navigator.onRouteUnknown(null)
return
}
val link = HttpUrl.parse(url)!!
val link = HttpUrl.parse(url)
if (link == null) {
navigator.onRouteUnknown(url)
return
}
val path = link.pathSegments().joinToString { "/" }
if (path.contains("issues")) {
if (link.pathSegments().last() == "issues") {
Loading
Loading
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment