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

Call ObservableList#clear() for LineChart result on IndexOutOfBoundsException

    Details

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

      Ubuntu 11.04
      Java 1.7.0-b147
      javafx_sdk-2_1_0-beta-b12 AND javafx_sdk-2_1_0-beta-b14

      Description

      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.

        Attachments

          Activity

            People

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

              Dates

              • Created:
                Updated:
                Resolved:
                Imported: