mirror of
https://github.com/sparrowwallet/sparrow.git
synced 2025-06-29 10:10:25 +02:00
fix bitcoin core cookie dir not present npe
This commit is contained in:
@ -112,7 +112,7 @@ public class Bwt {
|
|||||||
|
|
||||||
Config config = Config.get();
|
Config config = Config.get();
|
||||||
bwtConfig.bitcoindUrl = config.getCoreServer();
|
bwtConfig.bitcoindUrl = config.getCoreServer();
|
||||||
if(config.getCoreAuthType() == CoreAuthType.COOKIE) {
|
if(config.getCoreAuthType() == CoreAuthType.COOKIE && config.getCoreDataDir() != null) {
|
||||||
bwtConfig.bitcoindDir = config.getCoreDataDir().getAbsolutePath() + "/";
|
bwtConfig.bitcoindDir = config.getCoreDataDir().getAbsolutePath() + "/";
|
||||||
} else {
|
} else {
|
||||||
bwtConfig.bitcoindAuth = config.getCoreAuth();
|
bwtConfig.bitcoindAuth = config.getCoreAuth();
|
||||||
|
Reference in New Issue
Block a user