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

Call ObservableList#clear() for LineChart result on IndexOutOfBoundsException

XMLWordPrintable

    • Icon: Bug Bug
    • Resolution: Fixed
    • Icon: P3 P3
    • 7u6
    • fx2.1
    • javafx
    • Ubuntu 11.04
      Java 1.7.0-b147
      javafx_sdk-2_1_0-beta-b12 AND javafx_sdk-2_1_0-beta-b14

      Reproduce on javafx_sdk-2_1_0-beta-b12 and javafx_sdk-2_1_0-beta-b14

      Exception thrown:
      Exception in runnable
      java.lang.IndexOutOfBoundsException: Index: 0, Size: 0
      at java.util.ArrayList.rangeCheck(ArrayList.java:604)
      at java.util.ArrayList.get(ArrayList.java:382)
      at com.sun.javafx.collections.ObservableListWrapper.get(ObservableListWrapper.java:208)
      at javafx.scene.chart.LineChart.dataItemRemoved(LineChart.java:262)
      at javafx.scene.chart.XYChart.dataItemsChanged(XYChart.java:469)
      at javafx.scene.chart.XYChart.access$2500(XYChart.java:72)
      at javafx.scene.chart.XYChart$Series$1.onChanged(XYChart.java:1461)
      at com.sun.javafx.collections.ListListenerHelper$SingleChange.fireValueChangedEvent(ListListenerHelper.java:134)
      at com.sun.javafx.collections.ListListenerHelper.fireValueChangedEvent(ListListenerHelper.java:48)
      at com.sun.javafx.collections.ObservableListWrapper.callObservers(ObservableListWrapper.java:97)
      at com.sun.javafx.collections.ObservableListWrapper.clear(ObservableListWrapper.java:184)
      at fr.kensai.fx.charts.line.LineChartApplication$2$1.run(LineChartApplication.java:101)
      at com.sun.javafx.application.PlatformImpl$3.run(PlatformImpl.java:141)
      at com.sun.glass.ui.gtk.GtkApplication._runLoop(Native Method)
      at com.sun.glass.ui.gtk.GtkApplication$2$1.run(GtkApplication.java:79)
      at java.lang.Thread.run(Thread.java:722)


      Code in attachement.

            psomashe Parvathi Somashekar (Inactive)
            duke J. Duke
            Votes:
            0 Vote for this issue
            Watchers:
            0 Start watching this issue

              Created:
              Updated:
              Resolved:
              Imported: