summaryrefslogtreecommitdiffhomepage
diff options
context:
space:
mode:
authorMikael Magnusson <mikma@users.sourceforge.net>2023-04-17 23:22:52 +0200
committerMikael Magnusson <mikma@users.sourceforge.net>2023-04-17 23:22:52 +0200
commit85a10d56ed5e441631da9fc2ad284cf5fcde8232 (patch)
tree1cf349410bbfad6a7881627501f19c272c9157e6
parentd8765c9854d714f1463242a8daaea87c7128c9a6 (diff)
WIP fix NoSuchElementExceptionbuild7
-rw-r--r--ui/src/main/java/com/wireguard/android/model/ObservableTunnel.kt2
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