RFR: 8089398: [ChoiceBox, ComboBox] throws NPE on setting value on null selectionModel [v4]
Jeanette Winzenburg
fastegal at openjdk.java.net
Fri Jul 9 10:06:54 UTC 2021
On Wed, 7 Jul 2021 19:37:23 GMT, Marius Hanl <mhanl at openjdk.org> wrote:
>> This PR fixes multiple NPEs in Choice-and ComboBox, when the selection model is null.
>>
>> ChoiceBox:
>> - Null check in **valueProperty()** listener
>>
>> ComboBox:
>> - Null check in **editableProperty()* listener*
>> - Null check in **valueProperty()** listener
>> - Null check in **ComboBoxListViewSkin#updateValue()**
>> - Null check in **ComboBoxListViewSkin#layoutChildren()**
>>
>> ~~The tests checks, that no NPE is printed to the console.~
>> Some checks, that the set value is still displayed (either in the ComboBox button cell or the ChoiceBox display label)~~
>
> Marius Hanl has updated the pull request incrementally with two additional commits since the last revision:
>
> - Fixed NPE for setEditable() and layoutChildren()
> - removed unneeded button cell in test
okay, you two convinced me - include all NPEs in the combo/skin :)
-------------
Changes requested by fastegal (Reviewer).
PR: https://git.openjdk.java.net/jfx/pull/557
More information about the openjfx-dev
mailing list