From 90d9990534a575bf7e1a5a51e0cebb005be7d9fd 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(-) (limited to 'ui/src') 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 ef631c7d..5c34b57f 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