mirror of
https://github.com/bisq-network/bisq.git
synced 2024-11-19 09:52:23 +01:00
Merge pull request #6381 from jmacxx/fix_issue_6379
Fix NPE when dust tx is shown
This commit is contained in:
commit
78bd0ce688
@ -393,16 +393,10 @@ public class TransactionsView extends ActivatableView<VBox, Void> {
|
||||
hyperlinkWithIcon.setOnAction(event -> openDetailPopup(item));
|
||||
hyperlinkWithIcon.setTooltip(new Tooltip(Res.get("tooltip.openPopupForDetails")));
|
||||
setGraphic(hyperlinkWithIcon);
|
||||
// If details are available its a trade tx and we don't expect any dust attack tx
|
||||
} else {
|
||||
if (item.isDustAttackTx()) {
|
||||
hyperlinkWithIcon = new HyperlinkWithIcon(item.getTradable().getId(), AwesomeIcon.WARNING_SIGN);
|
||||
hyperlinkWithIcon.setOnAction(event -> new Popup().warning(Res.get("funds.tx.dustAttackTx.popup")).show());
|
||||
setGraphic(hyperlinkWithIcon);
|
||||
// its a trade tx and we don't expect any dust attack tx
|
||||
} else {
|
||||
setGraphic(null);
|
||||
}
|
||||
}
|
||||
} else {
|
||||
setGraphic(null);
|
||||
if (hyperlinkWithIcon != null)
|
||||
@ -431,7 +425,13 @@ public class TransactionsView extends ActivatableView<VBox, Void> {
|
||||
super.updateItem(item, empty);
|
||||
|
||||
if (item != null && !empty) {
|
||||
if (item.isDustAttackTx()) {
|
||||
hyperlinkWithIcon = new HyperlinkWithIcon(item.getDetails(), AwesomeIcon.WARNING_SIGN);
|
||||
hyperlinkWithIcon.setOnAction(event -> new Popup().warning(Res.get("funds.tx.dustAttackTx.popup")).show());
|
||||
setGraphic(hyperlinkWithIcon);
|
||||
} else {
|
||||
setGraphic(new AutoTooltipLabel(item.getDetails()));
|
||||
}
|
||||
} else {
|
||||
setGraphic(null);
|
||||
}
|
||||
|
Loading…
Reference in New Issue
Block a user