mirror of
https://github.com/boldsuck/haveno.git
synced 2024-12-22 20:19:21 +00:00
fix npe when connection is null
This commit is contained in:
parent
856ff9864f
commit
da8474a0f4
1 changed files with 1 additions and 0 deletions
|
@ -330,6 +330,7 @@ public final class XmrConnectionService {
|
||||||
}
|
}
|
||||||
|
|
||||||
private boolean useTorProxy(MoneroRpcConnection connection) {
|
private boolean useTorProxy(MoneroRpcConnection connection) {
|
||||||
|
if (connection == null) return false;
|
||||||
return connection.isOnion() || (preferences.getUseTorForXmr().isUseTorForXmr() && !HavenoUtils.isLocalHost(connection.getUri()));
|
return connection.isOnion() || (preferences.getUseTorForXmr().isUseTorForXmr() && !HavenoUtils.isLocalHost(connection.getUri()));
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
Loading…
Reference in a new issue