On Wed, 21 Oct 2026 17:21:17 GMT, Philemon Hilscher <[email protected]> wrote:
>> This fixes the issue adressed here >> https://bugs.openjdk.org/browse/JDK-8222454 >> >> The added TreeTableViewTests were failing without the main code changes. I >> added the other tests to ensure the consistent functionality of related cell >> based components. >> The method getItemCount() needed to be moved to CellBehaviorBase to do the >> necessary index check in doSelect() below. All subclasses now implement this >> method based on the cell container. >> >> There is still some refactoring potential here, to reduce code duplications >> and ensure consistent behavior of all cell based components. This could be >> done in a follow-up PR. >> >> - [x] I confirm that I make this contribution in accordance with the >> [OpenJDK Interim AI Policy](https://openjdk.org/legal/ai). > > Philemon Hilscher has updated the pull request with a new target base due to > a merge or a rebase. The pull request now contains five commits: > > - Merge branch 'master' into > JDK-8222454-fix-nullpointer-in-treetablerowbehavior > - 8222454: Review fixes > > Signed-off-by: Philemon Hilscher <[email protected]> > - Merge branch 'master' into > JDK-8222454-fix-nullpointer-in-treetablerowbehavior > - 8222454: Review fixes > > Signed-off-by: Philemon Hilscher <[email protected]> > - 8222454: Fix nullpointer in TreeTableRowBehavior > > Signed-off-by: Philemon Hilscher <[email protected]> Ok rechecking now in more detail: - `getItemCount()` should not throw, handles null - `isEmpty()` check is also needed Both are before and now inconsistent. Making them consistent will also adress my points above and fix all open issues. ------------- PR Comment: https://git.openjdk.org/jfx/pull/2129#issuecomment-6767643899
