mirror of
https://github.com/bitcoinj/bitcoinj.git
synced 2025-02-23 22:46:56 +01:00
Wallet: Fix NullPointerException in isRequiringUpdateAllBloomFilter() when calculating the filter for a basic wallet.
This commit is contained in:
parent
0f811846c9
commit
561bc1d31b
1 changed files with 4 additions and 3 deletions
|
@ -4807,9 +4807,10 @@ public class Wallet extends BaseTaggableObject
|
|||
try {
|
||||
if (!watchedScripts.isEmpty())
|
||||
return true;
|
||||
for (DeterministicKeyChain chain : keyChainGroup.chains)
|
||||
if (chain.getOutputScriptType() == Script.ScriptType.P2WPKH)
|
||||
return true;
|
||||
if (keyChainGroup.chains != null)
|
||||
for (DeterministicKeyChain chain : keyChainGroup.chains)
|
||||
if (chain.getOutputScriptType() == Script.ScriptType.P2WPKH)
|
||||
return true;
|
||||
return false;
|
||||
} finally {
|
||||
keyChainGroupLock.unlock();
|
||||
|
|
Loading…
Add table
Reference in a new issue