From 4dd52eb9dd1f8402f2d64ac5251de4bb18a32b41 Mon Sep 17 00:00:00 2001 From: Craig Raw Date: Thu, 11 Mar 2021 10:08:41 +0200 Subject: [PATCH] handle csv export with mempool txes --- .../sparrowwallet/sparrow/wallet/TransactionsController.java | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/main/java/com/sparrowwallet/sparrow/wallet/TransactionsController.java b/src/main/java/com/sparrowwallet/sparrow/wallet/TransactionsController.java index cc14b0fc..f6cf6684 100644 --- a/src/main/java/com/sparrowwallet/sparrow/wallet/TransactionsController.java +++ b/src/main/java/com/sparrowwallet/sparrow/wallet/TransactionsController.java @@ -114,7 +114,7 @@ public class TransactionsController extends WalletFormController implements Init writer.writeRecord(new String[] {"Date", "Label", "Value", "Balance"}); for(Entry entry : walletTransactionsEntry.getChildren()) { TransactionEntry txEntry = (TransactionEntry)entry; - writer.write(EntryCell.DATE_FORMAT.format(txEntry.getBlockTransaction().getDate())); + writer.write(txEntry.getBlockTransaction().getDate() == null ? "Unconfirmed" : EntryCell.DATE_FORMAT.format(txEntry.getBlockTransaction().getDate())); writer.write(txEntry.getLabel()); writer.write(getCoinValue(txEntry.getValue())); writer.write(getCoinValue(txEntry.getBalance()));