RFR: 8251481: TableCell accessing row: NPE on auto-sizing [v4]
Jeanette Winzenburg
fastegal at openjdk.java.net
Wed Feb 2 12:01:14 UTC 2022
On Tue, 1 Feb 2022 17:41:47 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`).
>
> Marius Hanl has updated the pull request incrementally with one additional commit since the last revision:
>
> 8251481: Added jdk ticket reference in TreeTableCellTest + Grammar
okay
-------------
Marked as reviewed by fastegal (Reviewer).
PR: https://git.openjdk.java.net/jfx/pull/716
More information about the openjfx-dev
mailing list