mirror of
https://github.com/retoaccess1/haveno-reto.git
synced 2024-11-10 13:13:36 +01:00
fix npe when connection is null
This commit is contained in:
parent
856ff9864f
commit
da8474a0f4
@ -330,6 +330,7 @@ public final class XmrConnectionService {
|
||||
}
|
||||
|
||||
private boolean useTorProxy(MoneroRpcConnection connection) {
|
||||
if (connection == null) return false;
|
||||
return connection.isOnion() || (preferences.getUseTorForXmr().isUseTorForXmr() && !HavenoUtils.isLocalHost(connection.getUri()));
|
||||
}
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user