From d5fdd6881c8c57f2fef94b92a71de9f53175a83b Mon Sep 17 00:00:00 2001 From: Craig Raw Date: Wed, 30 Aug 2023 09:32:02 +0200 Subject: [PATCH] followup --- src/main/java/com/sparrowwallet/sparrow/wallet/WalletForm.java | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/main/java/com/sparrowwallet/sparrow/wallet/WalletForm.java b/src/main/java/com/sparrowwallet/sparrow/wallet/WalletForm.java index aac386eb..bcc7ca2c 100644 --- a/src/main/java/com/sparrowwallet/sparrow/wallet/WalletForm.java +++ b/src/main/java/com/sparrowwallet/sparrow/wallet/WalletForm.java @@ -510,7 +510,7 @@ public class WalletForm { if((receivedRef.getLabel() == null || receivedRef.getLabel().isEmpty() || receivedRef.getLabel().endsWith(" (sent)") || receivedRef.getLabel().endsWith(" (change)") || receivedRef.getLabel().endsWith(" (received)")) && wallet.getStandardAccountType() != StandardAccount.WHIRLPOOL_PREMIX) { - prevRefLabel = receivedRef.getLabel(); + prevRefLabel = receivedRef.getLabel() == null ? "" : receivedRef.getLabel(); receivedRef.setLabel(entry.getLabel() + (keyPurpose == KeyPurpose.CHANGE ? (event.getWallet().isBip47() ? " (sent)" : " (change)") : " (received)")); labelChangedEntries.put(new HashIndexEntry(event.getWallet(), receivedRef, HashIndexEntry.Type.OUTPUT, keyPurpose), entry); }