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) {
|
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 New Issue
Block a user