diff options
author | Mikael Magnusson <mikma@users.sourceforge.net> | 2023-04-17 23:22:52 +0200 |
---|---|---|
committer | Mikael Magnusson <mikma@users.sourceforge.net> | 2023-05-27 00:52:28 +0200 |
commit | 3afe7c229375bb34212abfe8b1fe8cacf1a83349 (patch) | |
tree | afaa5a1a6befedc182d0a3b67bf9e37375e3cb8c | |
parent | 96d79b39d10e3b120ba6b94079a2773c2819a8ef (diff) |
WIP fix NoSuchElementException
-rw-r--r-- | ui/src/main/java/com/wireguard/android/model/ObservableTunnel.kt | 2 |
1 files changed, 1 insertions, 1 deletions
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 |