fix npe when connection is null

This commit is contained in:
woodser 2023-12-04 09:17:43 -05:00
parent 856ff9864f
commit da8474a0f4

View file

@ -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()));
}