RFR: 8279640: ListView with null SelectionModel/FocusModel throws NPE

Marius Hanl mhanl at openjdk.org
Thu Aug 11 08:31:54 UTC 2022


On Wed, 10 Aug 2022 23:21:20 GMT, Andy Goryachev <angorya at openjdk.org> wrote:

> ListViewSkin:381 calls getSelectionModel()

probably, same to focusModel here.

> modules/javafx.controls/src/main/java/com/sun/javafx/scene/control/behavior/ListViewBehavior.java line 268:
> 
>> 266:             return;
>> 267:         }
>> 268: 
> 
> line 281 (below): could sm be null there?

no, as this is listener is added to a particular selection model.

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

PR: https://git.openjdk.org/jfx/pull/711


More information about the openjfx-dev mailing list