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-03 00:07:40 +0200
commit9074b1e3af6f9262953ce30b5ef0c092ae2dcf63 (patch)
treea3b3145ca71d6e505e17173a3ebadeb9d4288a77
parent3e60f2add0179df08d56870a01c022deeab1ca01 (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 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