mirror of
https://github.com/sparrowwallet/sparrow.git
synced 2024-12-24 12:46:45 +00:00
fix remaining issue when utxo date is null
This commit is contained in:
parent
b9d6cb17d4
commit
576253e651
1 changed files with 1 additions and 1 deletions
|
@ -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");
|
||||
|
|
Loading…
Reference in a new issue