What to do with an JavaFX exception
Petr Nemecek
pnem at cmail.cz
Wed May 29 22:51:38 UTC 2019
Dear all,
when making a call in a separate thread like this:
myTableView.getSelectionModel().select(myItem);
I sometimes (not every time...) get the exception see the stacktrace below.
It looks to me like a bug somewhere in JavaFX code. Could I file this as a bug? Where?
Many thanks,
Petr
***
java.lang.ArrayIndexOutOfBoundsException: arraycopy: length -1 is negative
at java.base/java.lang.System.arraycopy(Native Method)
at javafx.collections.transformation.SortedList.removeFromMapping(SortedList.java:364)
at javafx.collections.transformation.SortedList.addRemove(SortedList.java:398)
at javafx.collections.transformation.SortedList.sourceChanged(SortedList.java:108)
at javafx.collections.transformation.TransformationList.lambda$getListener$0(TransformationList.java:106)
at javafx.collections.WeakListChangeListener.onChanged(WeakListChangeListener.java:88)
at com.sun.javafx.collections.ListListenerHelper$SingleChange.fireValueChangedEvent(ListListenerHelper.java:164)
at com.sun.javafx.collections.ListListenerHelper.fireValueChangedEvent(ListListenerHelper.java:73)
at javafx.collections.ObservableListBase.fireChange(ObservableListBase.java:233)
at javafx.collections.ListChangeBuilder.commit(ListChangeBuilder.java:482)
at javafx.collections.ListChangeBuilder.endChange(ListChangeBuilder.java:541)
at javafx.collections.ObservableListBase.endChange(ObservableListBase.java:205)
at com.sun.javafx.collections.ObservableListWrapper.clear(ObservableListWrapper.java:157)
at com.sun.javafx.scene.control.SelectedCellsMap.clear(SelectedCellsMap.java:202)
at javafx.scene.control.TableView$TableViewArrayListSelectionModel.quietClearSelection(TableView.java:2815)
at javafx.scene.control.TableView$TableViewArrayListSelectionModel.select(TableView.java:2539)
at com.rinkai.rinkairouting.scenes.main.DistanceMatrixController$1.call(DistanceMatrixController.java:200)
More information about the openjfx-discuss
mailing list