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

NumberAxis: NPE from tickLabelFontProperty().bind()

    XMLWordPrintable

    Details

    • Type: Bug
    • Status: Closed
    • Priority: P3
    • Resolution: Fixed
    • Affects Version/s: fx2.0
    • Fix Version/s: fx2.0
    • Component/s: javafx
    • Labels:
    • Environment:

      Win7/JDK6/FX-b34

      Description

      NPE from tickLabelFontProperty().bind() if ObjectProperty's value is null. Sample is attached.

      java.lang.NullPointerException
              at javafx.scene.text.Text$4.invalidated(Text.java:234)
              at javafx.beans.property.ObjectPropertyBase.markInvalid(ObjectPropertyBase.java:62)
              at javafx.beans.property.ObjectPropertyBase.set(ObjectPropertyBase.java:116)
              at javafx.scene.text.Text.setFont(Text.java:218)
              at javafx.scene.chart.Axis$5.invalidated(Axis.java:129)
              at javafx.beans.property.ObjectPropertyBase.markInvalid(ObjectPropertyBase.java:62)
              at javafx.beans.property.ObjectPropertyBase.bind(ObjectPropertyBase.java:152)

        Attachments

          Activity

            People

            Assignee:
            lnerad Ľubomír Nerád
            Reporter:
            ogb Oleg Barbashov (Inactive)
            Votes:
            0 Vote for this issue
            Watchers:
            0 Start watching this issue

              Dates

              Created:
              Updated:
              Resolved:
              Imported: