Browse Source

fix bitcoin core cookie dir not present npe

terminal 1.0.0
Craig Raw 4 years ago
parent
commit
095518e858
  1. 2
      src/main/java/com/sparrowwallet/sparrow/net/Bwt.java

2
src/main/java/com/sparrowwallet/sparrow/net/Bwt.java

@ -112,7 +112,7 @@ public class Bwt {
Config config = Config.get();
bwtConfig.bitcoindUrl = config.getCoreServer();
if(config.getCoreAuthType() == CoreAuthType.COOKIE) {
if(config.getCoreAuthType() == CoreAuthType.COOKIE && config.getCoreDataDir() != null) {
bwtConfig.bitcoindDir = config.getCoreDataDir().getAbsolutePath() + "/";
} else {
bwtConfig.bitcoindAuth = config.getCoreAuth();

Loading…
Cancel
Save