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

Binding to an ObservableValue that resolves to null generates an NPE

    Details

    • Type: Bug
    • Status: Resolved
    • Priority: P4
    • Resolution: Fixed
    • Affects Version/s: 7u6
    • Fix Version/s: 8
    • Component/s: javafx
    • Labels:
    • Subcomponent:

      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

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

              Dates

              • Created:
                Updated:
                Resolved:
                Imported: