mirror of
https://github.com/Qortal/altcoinj.git
synced 2025-07-30 03:21:23 +00:00
Wallet: Fix NullPointerException in isRequiringUpdateAllBloomFilter() when calculating the filter for a basic wallet.
This commit is contained in:
@@ -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();
|
||||
|
Reference in New Issue
Block a user