Uploaded image for project: 'JDK'
  1. JDK
  2. JDK-8334883

☂ Nodes: nullability in properties

XMLWordPrintable

    • Icon: Task Task
    • Resolution: Unresolved
    • Icon: P4 P4
    • tbd
    • jfx22
    • javafx
    • None

      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).

            angorya Andy Goryachev
            angorya Andy Goryachev
            Votes:
            0 Vote for this issue
            Watchers:
            4 Start watching this issue

              Created:
              Updated: