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-05-09 01:38:14 +0200
commit90d9990534a575bf7e1a5a51e0cebb005be7d9fd (patch)
tree7a9c344851a65f6f883ca18f213cc532c29dedd1
parentbb4f1a13c826f1159e43d8f295049cde83e3185e (diff)
WIP fix NoSuchElementException
-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 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