From 9074b1e3af6f9262953ce30b5ef0c092ae2dcf63 Mon Sep 17 00:00:00 2001 From: Mikael Magnusson Date: Mon, 17 Apr 2023 23:22:52 +0200 Subject: WIP fix NoSuchElementException --- ui/src/main/java/com/wireguard/android/model/ObservableTunnel.kt | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/ui/src/main/java/com/wireguard/android/model/ObservableTunnel.kt b/ui/src/main/java/com/wireguard/android/model/ObservableTunnel.kt index e38e473f..490a2216 100644 --- a/ui/src/main/java/com/wireguard/android/model/ObservableTunnel.kt +++ b/ui/src/main/java/com/wireguard/android/model/ObservableTunnel.kt @@ -72,7 +72,7 @@ class ObservableTunnel internal constructor( } else { configDetail?.peers?.forEach { var endpoint: InetEndpoint? = it.peer?.endpoint?.orElse(null) - it.endpoint = Optional.ofNullable(endpoint?.getResolved()?.get()) + it.endpoint = Optional.ofNullable(endpoint?.getResolved()?.orElse(null)); } } this.state = state -- cgit v1.2.3