TabPane.selectionModel property allows for setting a null value, but that causes multiple NPEs down the road.
Region.padding property does not allow for null values (throws NPE when setting, Region:686)
Labeled.getAlignment() L190 allows, but breaks with the null value
I think we should explicitly document which properties allow null values, as well as add code to the corresponding invalidate() methods to throw a NPE when setting the null value (subject to discussion).
Region.padding property does not allow for null values (throws NPE when setting, Region:686)
Labeled.getAlignment() L190 allows, but breaks with the null value
I think we should explicitly document which properties allow null values, as well as add code to the corresponding invalidate() methods to throw a NPE when setting the null value (subject to discussion).
- relates to
-
JDK-8334874 Horizontal scroll events from touch pads should scroll the TabPane tabs
- Resolved
-
JDK-8088794 undefined behavior setting properties to null
- Open
-
JDK-8141385 NullPointerException when label.setFont(null) is called
- Open
-
JDK-8145883 setStyle(null) on TextField with custom skin not working correctly
- Open