diff options
-rw-r--r-- | ui/src/main/java/com/wireguard/android/model/ObservableTunnel.kt | 2 |
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 |