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

NPE when removing last item in series in AreaChart

XMLWordPrintable

    • Icon: Bug Bug
    • Resolution: Fixed
    • Icon: P3 P3
    • None
    • fx2.1
    • javafx
    • win7, 2.1 b18

      run attached code, click on chart. Next NPE will be thrown:


      java.lang.NullPointerException
      at javafx.scene.chart.AreaChart.dataItemRemoved(AreaChart.java:151)
      at javafx.scene.chart.XYChart.dataItemsChanged(XYChart.java:448)
      at javafx.scene.chart.XYChart.access$2500(XYChart.java:51)
      at javafx.scene.chart.XYChart$Series$1.onChanged(XYChart.java:1430)
      at com.sun.javafx.collections.ObservableListWrapper.callObservers(ObservableListWrapper.java:98)
      at com.sun.javafx.collections.ObservableListWrapper.remove(ObservableListWrapper.java:205)
      at controls.AdvancedAreaChartSample$1.handle(AdvancedAreaChartSample.java:71)
      [...]

            psomashe Parvathi Somashekar (Inactive)
            sgrinev Sergey Grinev (Inactive)
            Votes:
            0 Vote for this issue
            Watchers:
            0 Start watching this issue

              Created:
              Updated:
              Resolved:
              Imported: