Fix NPE in Open Proposals when last column is empty

This commit is contained in:
Android-X13 2022-09-08 14:22:31 +03:00
parent babdc750ac
commit 741a3d16bd
No known key found for this signature in database
GPG Key ID: 161BE7DF6FC78FC7

View File

@ -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;
}