mirror of
https://github.com/sparrowwallet/drongo.git
synced 2024-11-02 18:26:43 +00:00
prevent concurrent modification exception while copying node tree
This commit is contained in:
parent
c4d2041a77
commit
67bc479ae9
1 changed files with 1 additions and 1 deletions
|
@ -325,7 +325,7 @@ public class WalletNode extends Persistable implements Comparable<WalletNode> {
|
||||||
copy.setId(getId());
|
copy.setId(getId());
|
||||||
copy.setLabel(label);
|
copy.setLabel(label);
|
||||||
|
|
||||||
for(WalletNode child : getChildren()) {
|
for(WalletNode child : new ArrayList<>(getChildren())) {
|
||||||
copy.children.add(child.copy(walletCopy));
|
copy.children.add(child.copy(walletCopy));
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
Loading…
Reference in a new issue