summaryrefslogtreecommitdiffhomepage
path: root/ui/src/main/java
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-21 22:10:27 +0200
commit276128328fd8aea4ff9fb7af3f3f933d591e1261 (patch)
treeca3b66d8a90fdba2b6effa9fed4b97e8be679ac3 /ui/src/main/java
parent5c1d3a7163960191f36aa4d3249837c33d738f35 (diff)
WIP fix NoSuchElementException
Diffstat (limited to 'ui/src/main/java')
-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