☂ Nodes: nullability in properties

XMLWordPrintable

    • Type: Task
    • Resolution: Unresolved
    • Priority: P4
    • tbd
    • Affects Version/s: jfx22
    • Component/s: 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).

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

              Created:
              Updated: