On Fri, 14 Jan 2022 00:04:49 GMT, Marius Hanl <mh...@openjdk.org> wrote:
> This PR will fix a simple NPE which may happens when using the `TableRow` > inside a `TableCell` during the initial auto sizing. > In the auto sizing code, no `TableRow` is set, therefore `getTableRow()` will > return null and it is not possible to e.g. access the row item. > > This is fixed by adding the `TableRow` in the `resizeColumnToFitContent` > method, similar as it is already done for the `TreeTableView` > (`TreeTableRow`). This pull request has now been integrated. Changeset: 59cd8ec2 Author: Marius Hanl <mh...@openjdk.org> Committer: Jeanette Winzenburg <faste...@openjdk.org> URL: https://git.openjdk.java.net/jfx/commit/59cd8ec2d6a221a19ac4eb3a26f65535766410cc Stats: 52 lines in 3 files changed: 49 ins; 0 del; 3 mod 8251481: TableCell accessing row: NPE on auto-sizing Reviewed-by: fastegal ------------- PR: https://git.openjdk.java.net/jfx/pull/716