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

NPE when removing last item in series in AreaChart

    XMLWordPrintable

    Details

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

      win7, 2.1 b18

      Description

      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)
      [...]

        Attachments

          Activity

            People

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

              Dates

              Created:
              Updated:
              Resolved:
              Imported: