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-21 22:10:27 +0200 |
commit | 276128328fd8aea4ff9fb7af3f3f933d591e1261 (patch) | |
tree | ca3b66d8a90fdba2b6effa9fed4b97e8be679ac3 | |
parent | 5c1d3a7163960191f36aa4d3249837c33d738f35 (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 |