From 095518e858a78d701d0b40077a79e076c3666971 Mon Sep 17 00:00:00 2001 From: Craig Raw Date: Thu, 28 Jan 2021 12:45:12 +0200 Subject: [PATCH] fix bitcoin core cookie dir not present npe --- src/main/java/com/sparrowwallet/sparrow/net/Bwt.java | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/main/java/com/sparrowwallet/sparrow/net/Bwt.java b/src/main/java/com/sparrowwallet/sparrow/net/Bwt.java index 934e4a3d..cdfe07d2 100644 --- a/src/main/java/com/sparrowwallet/sparrow/net/Bwt.java +++ b/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();