From 20504781e1bfb3fa1f359a9b46202bbda25d84f7 Mon Sep 17 00:00:00 2001 From: Jay Ohms Date: Wed, 21 Jul 2021 12:20:56 -0400 Subject: [PATCH] Add the exception import --- .../main/kotlin/dev/hotwire/turbo/nav/TurboNavDestination.kt | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/turbo/src/main/kotlin/dev/hotwire/turbo/nav/TurboNavDestination.kt b/turbo/src/main/kotlin/dev/hotwire/turbo/nav/TurboNavDestination.kt index 5322c182..11ab5281 100644 --- a/turbo/src/main/kotlin/dev/hotwire/turbo/nav/TurboNavDestination.kt +++ b/turbo/src/main/kotlin/dev/hotwire/turbo/nav/TurboNavDestination.kt @@ -23,6 +23,7 @@ import dev.hotwire.turbo.fragments.TurboWebFragment import dev.hotwire.turbo.session.TurboSession import dev.hotwire.turbo.session.TurboSessionNavHostFragment import dev.hotwire.turbo.visit.TurboVisitOptions +import java.net.MalformedURLException import java.net.URL /** @@ -133,7 +134,7 @@ interface TurboNavDestination { return try { URL(newLocation) true - } catch (e: java.net.MalformedURLException) { + } catch (e: MalformedURLException) { false } }