Integrated: 8251481: TableCell accessing row: NPE on auto-sizing
Marius Hanl
mhanl at openjdk.java.net
Wed Feb 2 12:38:08 UTC 2022
On Fri, 14 Jan 2022 00:04:49 GMT, Marius Hanl <mhanl at 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 <mhanl at openjdk.org>
Committer: Jeanette Winzenburg <fastegal at 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
More information about the openjfx-dev
mailing list