RFR: JDK-8323543: NPE when table items are set to null [v2]

Andy Goryachev angorya at openjdk.org
Wed Jan 10 19:22:37 UTC 2024


On Wed, 10 Jan 2024 19:09:47 GMT, Carl Döbbelin <duke at openjdk.org> wrote:

>> This PR fixes a nullpointer in TableSkinUtils that occured when the Tables items were null.
>
> Carl Döbbelin has updated the pull request incrementally with one additional commit since the last revision:
> 
>   JDK-8323543: clean up code

I think it makes sense to add the checks in this PR.  We are addressing the issue and not introducing new code paths.
I wonder if we should also add the unit tests to cover the newly added checks.  What do you think?

modules/javafx.controls/src/test/java/test/javafx/scene/control/TableViewTest.java line 6081:

> 6079: 
> 6080:         assertDoesNotThrow(() -> Toolkit.getToolkit().firePulse());
> 6081: 

extra newline?

modules/javafx.controls/src/test/java/test/javafx/scene/control/TreeTableViewTest.java line 7276:

> 7274: 
> 7275:         assertDoesNotThrow(() -> Toolkit.getToolkit().firePulse());
> 7276: 

please remove extra newline

-------------

PR Comment: https://git.openjdk.org/jfx/pull/1329#issuecomment-1885514538
PR Review Comment: https://git.openjdk.org/jfx/pull/1329#discussion_r1447838560
PR Review Comment: https://git.openjdk.org/jfx/pull/1329#discussion_r1447808424


More information about the openjfx-dev mailing list