diff --git a/src/main/java/com/sparrowwallet/sparrow/net/cormorant/bitcoind/BitcoindClient.java b/src/main/java/com/sparrowwallet/sparrow/net/cormorant/bitcoind/BitcoindClient.java index fd5882bb..5fd49920 100644 --- a/src/main/java/com/sparrowwallet/sparrow/net/cormorant/bitcoind/BitcoindClient.java +++ b/src/main/java/com/sparrowwallet/sparrow/net/cormorant/bitcoind/BitcoindClient.java @@ -149,6 +149,9 @@ public class BitcoindClient { List loadedWallets; try { loadedWallets = getBitcoindService().listWallets(); + if(loadedWallets == null) { + throw new BitcoinRPCException("Wallet support must be enabled in Bitcoin Core"); + } legacyWalletExists = loadedWallets.contains(Bwt.DEFAULT_CORE_WALLET); } catch(JsonRpcException e) { if(e.getErrorMessage().getCode() == RPC_METHOD_NOT_FOUND) {