diff options
author | Mikael Magnusson <mikma@users.sourceforge.net> | 2023-04-17 23:22:52 +0200 |
---|---|---|
committer | Mikael Magnusson <mikma@users.sourceforge.net> | 2023-04-17 23:22:52 +0200 |
commit | 85a10d56ed5e441631da9fc2ad284cf5fcde8232 (patch) | |
tree | 1cf349410bbfad6a7881627501f19c272c9157e6 | |
parent | d8765c9854d714f1463242a8daaea87c7128c9a6 (diff) |
WIP fix NoSuchElementExceptionbuild7
-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 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 |