mirror of
https://github.com/bisq-network/bisq.git
synced 2024-11-19 01:41:11 +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,15 +393,9 @@ 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
|
||||
// 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);
|
||||
} else {
|
||||
setGraphic(null);
|
||||
}
|
||||
setGraphic(null);
|
||||
}
|
||||
} else {
|
||||
setGraphic(null);
|
||||
@ -431,7 +425,13 @@ public class TransactionsView extends ActivatableView<VBox, Void> {
|
||||
super.updateItem(item, empty);
|
||||
|
||||
if (item != null && !empty) {
|
||||
setGraphic(new AutoTooltipLabel(item.getDetails()));
|
||||
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