RFR: 8251481: TableCell accessing row: NPE on auto-sizing [v3]
Marius Hanl
mhanl at openjdk.java.net
Thu Jan 27 20:38:56 UTC 2022
> 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: Using global stageLoader now
-------------
Changes:
- all: https://git.openjdk.java.net/jfx/pull/716/files
- new: https://git.openjdk.java.net/jfx/pull/716/files/30dd77e9..a8d99555
Webrevs:
- full: https://webrevs.openjdk.java.net/?repo=jfx&pr=716&range=02
- incr: https://webrevs.openjdk.java.net/?repo=jfx&pr=716&range=01-02
Stats: 6 lines in 2 files changed: 0 ins; 4 del; 2 mod
Patch: https://git.openjdk.java.net/jfx/pull/716.diff
Fetch: git fetch https://git.openjdk.java.net/jfx pull/716/head:pull/716
PR: https://git.openjdk.java.net/jfx/pull/716
More information about the openjfx-dev
mailing list