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-10 21:08:27 +0200
commitfba75eb7bb9e8905c714437461106f7f607d21d5 (patch)
tree32f15d1494b001c269c5f961a54c396dffee5fe7
parente67ef05e68132873812c757c44a409c82209c9e5 (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