mirror of
https://github.com/sparrowwallet/drongo.git
synced 2024-12-26 01:56:44 +00:00
followup
This commit is contained in:
parent
de87ab1102
commit
78359961f3
1 changed files with 1 additions and 1 deletions
|
@ -152,7 +152,7 @@ public class WalletNode extends Persistable implements Comparable<WalletNode> {
|
||||||
|
|
||||||
public Set<WalletNode> fillToIndex(Wallet wallet, int index) {
|
public Set<WalletNode> fillToIndex(Wallet wallet, int index) {
|
||||||
Set<WalletNode> newNodes = fillToIndex(index);
|
Set<WalletNode> newNodes = fillToIndex(index);
|
||||||
if(!wallet.getDetachedLabels().isEmpty()) {
|
if(!wallet.getDetachedLabels().isEmpty() && wallet.isValid()) {
|
||||||
for(WalletNode newNode : newNodes) {
|
for(WalletNode newNode : newNodes) {
|
||||||
String label = wallet.getDetachedLabels().remove(wallet.getAddress(newNode).toString());
|
String label = wallet.getDetachedLabels().remove(wallet.getAddress(newNode).toString());
|
||||||
if(label != null && (newNode.getLabel() == null || newNode.getLabel().isEmpty())) {
|
if(label != null && (newNode.getLabel() == null || newNode.getLabel().isEmpty())) {
|
||||||
|
|
Loading…
Reference in a new issue