From 576253e651074049e450ecc6981cab856381f3cb Mon Sep 17 00:00:00 2001 From: Craig Raw Date: Wed, 6 Oct 2021 10:08:56 +0200 Subject: [PATCH] fix remaining issue when utxo date is null --- .../com/sparrowwallet/sparrow/wallet/ReceiveController.java | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/main/java/com/sparrowwallet/sparrow/wallet/ReceiveController.java b/src/main/java/com/sparrowwallet/sparrow/wallet/ReceiveController.java index 3255c50f..827ee8e2 100644 --- a/src/main/java/com/sparrowwallet/sparrow/wallet/ReceiveController.java +++ b/src/main/java/com/sparrowwallet/sparrow/wallet/ReceiveController.java @@ -134,7 +134,7 @@ public class ReceiveController extends WalletFormController implements Initializ } else if(!currentOutputs.isEmpty()) { long count = currentOutputs.size(); BlockTransactionHashIndex lastUsedReference = currentOutputs.stream().skip(count - 1).findFirst().get(); - lastUsed.setText(lastUsedReference.getHeight() <= 0 ? "Unconfirmed Transaction" : DATE_FORMAT.format(lastUsedReference.getDate())); + lastUsed.setText(lastUsedReference.getHeight() <= 0 ? "Unconfirmed Transaction" : (lastUsedReference.getDate() == null ? "Unknown" : DATE_FORMAT.format(lastUsedReference.getDate()))); lastUsed.setGraphic(getWarningGlyph()); if(!address.getStyleClass().contains("error")) { address.getStyleClass().add("error");