Skip to content

Commit

Permalink
Merge pull request #4365 from ddawson/ext-tor-nullptr
Browse files Browse the repository at this point in the history
Fix NullPointerException with external tor usage
  • Loading branch information
ripcurlx committed Jul 23, 2020
2 parents 1ea244e + 8c526d4 commit efe346a
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion p2p/src/main/java/bisq/network/p2p/network/RunningTor.java
Original file line number Diff line number Diff line change
Expand Up @@ -64,7 +64,7 @@ public Tor getTor() throws IOException, TorCtlException {
Tor result;
if (!password.isEmpty())
result = new ExternalTor(controlPort, password);
else if (cookieFile.exists())
else if (cookieFile != null && cookieFile.exists())
result = new ExternalTor(controlPort, cookieFile, useSafeCookieAuthentication);
else
result = new ExternalTor(controlPort);
Expand Down

0 comments on commit efe346a

Please sign in to comment.