mirror of
https://github.com/sparrowwallet/sparrow.git
synced 2024-11-05 05:46:44 +00:00
avoid npe loading new wallets with watchlast set
This commit is contained in:
parent
79c0f7769a
commit
ba199ff11b
1 changed files with 1 additions and 1 deletions
|
@ -348,7 +348,7 @@ public class ElectrumServer {
|
||||||
|
|
||||||
private Set<WalletNode> getAddressNodes(Wallet wallet, WalletNode purposeNode) {
|
private Set<WalletNode> getAddressNodes(Wallet wallet, WalletNode purposeNode) {
|
||||||
Integer watchLast = wallet.getWatchLast();
|
Integer watchLast = wallet.getWatchLast();
|
||||||
if(watchLast == null || watchLast < wallet.getGapLimit() || wallet.getStoredBlockHeight() == 0 || wallet.getTransactions().isEmpty()) {
|
if(watchLast == null || watchLast < wallet.getGapLimit() || wallet.getStoredBlockHeight() == null || wallet.getStoredBlockHeight() == 0 || wallet.getTransactions().isEmpty()) {
|
||||||
return purposeNode.getChildren();
|
return purposeNode.getChildren();
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
Loading…
Reference in a new issue