mirror of
https://github.com/bisq-network/bisq.git
synced 2025-02-24 23:18:17 +01:00
Merge pull request #6352 from Android-X13/npe-open-proposals
Prevent NPE in Open Proposals when last column is empty
This commit is contained in:
commit
3cc1517606
1 changed files with 2 additions and 1 deletions
|
@ -886,7 +886,8 @@ public class ProposalsView extends ActivatableView<GridPane, Void> implements Bs
|
|||
};
|
||||
}
|
||||
});
|
||||
column.setComparator(Comparator.comparing(item -> ((ProposalsListItem.IconButtonType) item.getIconButton().getUserData()).getTitle()));
|
||||
column.setComparator(Comparator.comparing(item -> item.getIconButton().getUserData() != null ?
|
||||
((ProposalsListItem.IconButtonType) item.getIconButton().getUserData()).getTitle() : ""));
|
||||
tableView.getColumns().add(column);
|
||||
lastColumn = column;
|
||||
}
|
||||
|
|
Loading…
Add table
Reference in a new issue