[TableView] ChoiceBoxTableCell causes exception

XMLWordPrintable

    • Type: Bug
    • Resolution: Fixed
    • Priority: P3
    • 8
    • Affects Version/s: 8
    • Component/s: javafx
    • Environment:

      jdk1.8.0b73

      In the table there is column "Departments" where the value is chosen from choice box.

      To reproduce the bug:
      1. Double click two times on department cell in the first or in the second row.

      You'll get:

      java.lang.IndexOutOfBoundsException: Index: 1, Size: 1
      at java.util.ArrayList.rangeCheck(ArrayList.java:603)
      at java.util.ArrayList.get(ArrayList.java:381)
      at com.sun.javafx.collections.ObservableListWrapper.get(ObservableListWrapper.java:63)
      at com.sun.javafx.collections.VetoableListDecorator.get(VetoableListDecorator.java:246)
      at com.sun.javafx.scene.control.skin.ContextMenuContent.getMenuYOffset(ContextMenuContent.java:768)
      at com.sun.javafx.scene.control.skin.ChoiceBoxSkin.handleControlPropertyChanged(ChoiceBoxSkin.java:236)
      at javafx.scene.control.SkinBase$2.call(SkinBase.java:188)

            Assignee:
            Jonathan Giles
            Reporter:
            Dmitry Zinkevich (Inactive)
            Votes:
            0 Vote for this issue
            Watchers:
            1 Start watching this issue

              Created:
              Updated:
              Resolved:
              Imported: