mirror of
https://github.com/bisq-network/bisq.git
synced 2024-11-19 09:52:23 +01:00
Merge pull request #6192 from jmacxx/fix_issue_6191
Transactions view: fix NPE in column sorting when Memo is empty
This commit is contained in:
commit
c141f85a8c
@ -207,7 +207,7 @@ public class TransactionsView extends ActivatableView<VBox, Void> {
|
||||
transactionColumn.setComparator(Comparator.comparing(TransactionsListItem::getTxId));
|
||||
amountColumn.setComparator(Comparator.comparing(TransactionsListItem::getAmountAsCoin));
|
||||
confidenceColumn.setComparator(Comparator.comparingDouble(item -> item.getTxConfidenceIndicator().getProgress()));
|
||||
memoColumn.setComparator(Comparator.comparing(TransactionsListItem::getMemo));
|
||||
memoColumn.setComparator(Comparator.comparing(o -> o.getMemo() != null ? o.getMemo() : ""));
|
||||
|
||||
dateColumn.setSortType(TableColumn.SortType.DESCENDING);
|
||||
tableView.getSortOrder().add(dateColumn);
|
||||
|
Loading…
Reference in New Issue
Block a user