Skip to content

Commit

Permalink
fix npe when connection is null
Browse files Browse the repository at this point in the history
  • Loading branch information
woodser committed Dec 5, 2023
1 parent 856ff98 commit da8474a
Showing 1 changed file with 1 addition and 0 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -330,6 +330,7 @@ private long getDefaultRefreshPeriodMs() {
}

private boolean useTorProxy(MoneroRpcConnection connection) {
if (connection == null) return false;
return connection.isOnion() || (preferences.getUseTorForXmr().isUseTorForXmr() && !HavenoUtils.isLocalHost(connection.getUri()));
}

Expand Down

0 comments on commit da8474a

Please sign in to comment.