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

Binding to an ObservableValue that resolves to null generates an NPE

    XMLWordPrintable

Details

    • Bug
    • Status: Resolved
    • P4
    • Resolution: Fixed
    • 7u6
    • 8
    • javafx

    Description

      If a DoubleProperty is bound to an ObservableValue that resolves to null, an NPE is thrown when the DoubleProperty is evaluated. The correct behavior would be to avoid the exception and the DoubleProperty has to be set to 0.0 instead.

      The same bug can probably be found for other types as well.

      Attachments

        Activity

          People

            mheinrichs Michael Heinrichs (Inactive)
            mheinrichs Michael Heinrichs (Inactive)
            Votes:
            0 Vote for this issue
            Watchers:
            2 Start watching this issue

            Dates

              Created:
              Updated:
              Resolved:
              Imported: