java.lang.ArrayIndexOutOfBoundsException: arraycopy: length -1 is negative at java.base/java.lang.System.arraycopy(Native Method) at org.jabref.merged.module@5.4.76/javafx.collections.transformation.SortedList.removeFromMapping(Unknown Source) at org.jabref.merged.module@5.4.76/javafx.collections.transformation.SortedList.addRemove(Unknown Source) at org.jabref.merged.module@5.4.76/javafx.collections.transformation.SortedList.sourceChanged(Unknown Source) at org.jabref.merged.module@5.4.76/javafx.collections.transformation.TransformationList.lambda$getListener$0(Unknown Source) at org.jabref.merged.module@5.4.76/javafx.collections.WeakListChangeListener.onChanged(Unknown Source) at org.jabref.merged.module@5.4.76/com.sun.javafx.collections.ListListenerHelper$Generic.fireValueChangedEvent(Unknown Source) at org.jabref.merged.module@5.4.76/com.sun.javafx.collections.ListListenerHelper.fireValueChangedEvent(Unknown Source) at org.jabref.merged.module@5.4.76/javafx.collections.ObservableListBase.fireChange(Unknown Source) at org.jabref.merged.module@5.4.76/javafx.collections.transformation.FilteredList.refilter(Unknown Source) at org.jabref.merged.module@5.4.76/javafx.collections.transformation.FilteredList$1.invalidated(Unknown Source) at org.jabref.merged.module@5.4.76/javafx.beans.property.ObjectPropertyBase.markInvalid(Unknown Source) at org.jabref.merged.module@5.4.76/javafx.beans.property.ObjectPropertyBase$Listener.invalidated(Unknown Source) at org.jabref.merged.module@5.4.76/com.sun.javafx.binding.ExpressionHelper$SingleInvalidation.fireValueChangedEvent(Unknown Source) at org.jabref.merged.module@5.4.76/com.sun.javafx.binding.ExpressionHelper.fireValueChangedEvent(Unknown Source) at org.jabref.merged.module@5.4.76/javafx.beans.binding.ObjectBinding.invalidate(Unknown Source) at org.jabref.merged.module@5.4.76/com.sun.javafx.binding.BindingHelperObserver.invalidated(Unknown Source) at org.jabref.merged.module@5.4.76/com.sun.javafx.binding.ListExpressionHelper$SingleInvalidation.fireValueChangedEvent(Unknown Source) at org.jabref.merged.module@5.4.76/com.sun.javafx.binding.ListExpressionHelper.fireValueChangedEvent(Unknown Source) at org.jabref.merged.module@5.4.76/javafx.beans.property.ReadOnlyListPropertyBase.fireValueChangedEvent(Unknown Source) at org.jabref.merged.module@5.4.76/javafx.beans.property.ReadOnlyListWrapper.fireValueChangedEvent(Unknown Source) at org.jabref.merged.module@5.4.76/javafx.beans.property.ListPropertyBase.markInvalid(Unknown Source) at org.jabref.merged.module@5.4.76/javafx.beans.property.ListPropertyBase$Listener.invalidated(Unknown Source) at org.jabref.merged.module@5.4.76/com.sun.javafx.binding.ExpressionHelper$SingleInvalidation.fireValueChangedEvent(Unknown Source) at org.jabref.merged.module@5.4.76/com.sun.javafx.binding.ExpressionHelper.fireValueChangedEvent(Unknown Source) at org.jabref.merged.module@5.4.76/javafx.beans.binding.ObjectBinding.invalidate(Unknown Source) at org.jabref.merged.module@5.4.76/com.sun.javafx.binding.BindingHelperObserver.invalidated(Unknown Source) at org.jabref.merged.module@5.4.76/com.sun.javafx.collections.MapListenerHelper$SingleInvalidation.fireValueChangedEvent(Unknown Source) at org.jabref.merged.module@5.4.76/com.sun.javafx.collections.MapListenerHelper.fireValueChangedEvent(Unknown Source) at org.jabref.merged.module@5.4.76/com.sun.javafx.collections.ObservableMapWrapper.callObservers(Unknown Source) at org.jabref.merged.module@5.4.76/com.sun.javafx.collections.ObservableMapWrapper.put(Unknown Source) at org.jabref@5.4.76/org.jabref.gui.StateManager.setSelectedGroups(Unknown Source) at org.jabref@5.4.76/org.jabref.gui.groups.GroupTreeViewModel.lambda$onSelectedGroupChanged$3(Unknown Source) at java.base/java.util.Optional.ifPresent(Unknown Source) at org.jabref@5.4.76/org.jabref.gui.groups.GroupTreeViewModel.onSelectedGroupChanged(Unknown Source) at com.tobiasdiez.easybind@2.2/com.tobiasdiez.easybind.EasyBind.lambda$subscribe$1(Unknown Source) at org.jabref.merged.module@5.4.76/com.sun.javafx.binding.ListExpressionHelper$Generic.notifyListeners(Unknown Source) at org.jabref.merged.module@5.4.76/com.sun.javafx.binding.ListExpressionHelper$Generic.fireValueChangedEvent(Unknown Source) at org.jabref.merged.module@5.4.76/com.sun.javafx.binding.ListExpressionHelper.fireValueChangedEvent(Unknown Source) at org.jabref.merged.module@5.4.76/javafx.beans.property.ListPropertyBase.fireValueChangedEvent(Unknown Source) at org.jabref.merged.module@5.4.76/javafx.beans.property.ListPropertyBase.lambda$new$0(Unknown Source) at org.jabref.merged.module@5.4.76/com.sun.javafx.collections.ListListenerHelper$SingleChange.fireValueChangedEvent(Unknown Source) at org.jabref.merged.module@5.4.76/com.sun.javafx.collections.ListListenerHelper.fireValueChangedEvent(Unknown Source) at org.jabref.merged.module@5.4.76/javafx.collections.ObservableListBase.fireChange(Unknown Source) at org.jabref.merged.module@5.4.76/javafx.collections.ListChangeBuilder.commit(Unknown Source) at org.jabref.merged.module@5.4.76/javafx.collections.ListChangeBuilder.endChange(Unknown Source) at org.jabref.merged.module@5.4.76/javafx.collections.ObservableListBase.endChange(Unknown Source) at org.jabref.merged.module@5.4.76/javafx.collections.ModifiableObservableListBase.setAll(Unknown Source) at org.jabref.merged.module@5.4.76/javafx.beans.binding.ListExpression.setAll(Unknown Source) at org.jabref@5.4.76/org.jabref.gui.groups.GroupTreeView.updateSelection(Unknown Source) at org.jabref@5.4.76/org.jabref.gui.util.BindingsHelper$BidirectionalListBinding.onChanged(Unknown Source) at org.jabref.merged.module@5.4.76/com.sun.javafx.collections.ListListenerHelper$SingleChange.fireValueChangedEvent(Unknown Source) at org.jabref.merged.module@5.4.76/com.sun.javafx.collections.ListListenerHelper.fireValueChangedEvent(Unknown Source) at org.jabref.merged.module@5.4.76/javafx.collections.ObservableListBase.fireChange(Unknown Source) at org.jabref.merged.module@5.4.76/javafx.collections.ListChangeBuilder.commit(Unknown Source) at org.jabref.merged.module@5.4.76/javafx.collections.ListChangeBuilder.endChange(Unknown Source) at org.jabref.merged.module@5.4.76/javafx.collections.ObservableListBase.endChange(Unknown Source) at org.jabref.merged.module@5.4.76/com.sun.javafx.scene.control.SelectedItemsReadOnlyObservableList.lambda$new$0(Unknown Source) at org.jabref.merged.module@5.4.76/com.sun.javafx.collections.ListListenerHelper$Generic.fireValueChangedEvent(Unknown Source) at org.jabref.merged.module@5.4.76/com.sun.javafx.collections.ListListenerHelper.fireValueChangedEvent(Unknown Source) at org.jabref.merged.module@5.4.76/javafx.collections.ObservableListBase.fireChange(Unknown Source) at org.jabref.merged.module@5.4.76/javafx.collections.ListChangeBuilder.commit(Unknown Source) at org.jabref.merged.module@5.4.76/javafx.collections.ListChangeBuilder.endChange(Unknown Source) at org.jabref.merged.module@5.4.76/javafx.collections.ObservableListBase.endChange(Unknown Source) at org.jabref.merged.module@5.4.76/com.sun.javafx.scene.control.ReadOnlyUnbackedObservableList._endChange(Unknown Source) at org.jabref.merged.module@5.4.76/javafx.scene.control.MultipleSelectionModelBase$SelectedIndicesList._endChange(Unknown Source) at org.jabref.merged.module@5.4.76/javafx.scene.control.ControlUtils.updateSelectedIndices(Unknown Source) at org.jabref.merged.module@5.4.76/javafx.scene.control.TreeTableView$TreeTableViewArrayListSelectionModel.fireCustomSelectedCellsListChangeEvent(Unknown Source) at org.jabref.merged.module@5.4.76/javafx.scene.control.TreeTableView$TreeTableViewArrayListSelectionModel.clearAndSelect(Unknown Source) at org.jabref.merged.module@5.4.76/com.sun.javafx.scene.control.behavior.TableCellBehaviorBase.simpleSelect(Unknown Source) at org.jabref.merged.module@5.4.76/com.sun.javafx.scene.control.behavior.TableCellBehaviorBase.doSelect(Unknown Source) at org.jabref.merged.module@5.4.76/com.sun.javafx.scene.control.behavior.CellBehaviorBase.mousePressed(Unknown Source) at org.jabref.merged.module@5.4.76/com.sun.javafx.scene.control.inputmap.InputMap.handle(Unknown Source) at org.jabref.merged.module@5.4.76/com.sun.javafx.event.CompositeEventHandler$NormalEventHandlerRecord.handleBubblingEvent(Unknown Source) at org.jabref.merged.module@5.4.76/com.sun.javafx.event.CompositeEventHandler.dispatchBubblingEvent(Unknown Source) at org.jabref.merged.module@5.4.76/com.sun.javafx.event.EventHandlerManager.dispatchBubblingEvent(Unknown Source) at org.jabref.merged.module@5.4.76/com.sun.javafx.event.EventHandlerManager.dispatchBubblingEvent(Unknown Source) at org.jabref.merged.module@5.4.76/com.sun.javafx.event.CompositeEventDispatcher.dispatchBubblingEvent(Unknown Source) at org.jabref.merged.module@5.4.76/com.sun.javafx.event.BasicEventDispatcher.dispatchEvent(Unknown Source) at org.jabref.merged.module@5.4.76/com.sun.javafx.event.EventDispatchChainImpl.dispatchEvent(Unknown Source) at org.jabref.merged.module@5.4.76/com.sun.javafx.event.BasicEventDispatcher.dispatchEvent(Unknown Source) at org.jabref.merged.module@5.4.76/com.sun.javafx.event.EventDispatchChainImpl.dispatchEvent(Unknown Source) at org.jabref.merged.module@5.4.76/com.sun.javafx.event.BasicEventDispatcher.dispatchEvent(Unknown Source) at org.jabref.merged.module@5.4.76/com.sun.javafx.event.EventDispatchChainImpl.dispatchEvent(Unknown Source) at org.jabref.merged.module@5.4.76/com.sun.javafx.event.BasicEventDispatcher.dispatchEvent(Unknown Source) at org.jabref.merged.module@5.4.76/com.sun.javafx.event.EventDispatchChainImpl.dispatchEvent(Unknown Source) at org.jabref.merged.module@5.4.76/com.sun.javafx.event.BasicEventDispatcher.dispatchEvent(Unknown Source) at org.jabref.merged.module@5.4.76/com.sun.javafx.event.EventDispatchChainImpl.dispatchEvent(Unknown Source) at org.jabref.merged.module@5.4.76/com.sun.javafx.event.BasicEventDispatcher.dispatchEvent(Unknown Source) at org.jabref.merged.module@5.4.76/com.sun.javafx.event.EventDispatchChainImpl.dispatchEvent(Unknown Source) at org.jabref.merged.module@5.4.76/com.sun.javafx.event.BasicEventDispatcher.dispatchEvent(Unknown Source) at org.jabref.merged.module@5.4.76/com.sun.javafx.event.EventDispatchChainImpl.dispatchEvent(Unknown Source) at org.jabref.merged.module@5.4.76/com.sun.javafx.event.BasicEventDispatcher.dispatchEvent(Unknown Source) at org.jabref.merged.module@5.4.76/com.sun.javafx.event.EventDispatchChainImpl.dispatchEvent(Unknown Source) at org.jabref.merged.module@5.4.76/com.sun.javafx.event.EventUtil.fireEventImpl(Unknown Source) at org.jabref.merged.module@5.4.76/com.sun.javafx.event.EventUtil.fireEvent(Unknown Source) at org.jabref.merged.module@5.4.76/javafx.event.Event.fireEvent(Unknown Source) at org.jabref.merged.module@5.4.76/javafx.scene.Scene$MouseHandler.process(Unknown Source) at org.jabref.merged.module@5.4.76/javafx.scene.Scene.processMouseEvent(Unknown Source) at org.jabref.merged.module@5.4.76/javafx.scene.Scene$ScenePeerListener.mouseEvent(Unknown Source) at org.jabref.merged.module@5.4.76/com.sun.javafx.tk.quantum.GlassViewEventHandler$MouseEventNotification.run(Unknown Source) at org.jabref.merged.module@5.4.76/com.sun.javafx.tk.quantum.GlassViewEventHandler$MouseEventNotification.run(Unknown Source) at java.base/java.security.AccessController.doPrivileged(Unknown Source) at org.jabref.merged.module@5.4.76/com.sun.javafx.tk.quantum.GlassViewEventHandler.lambda$handleMouseEvent$2(Unknown Source) at org.jabref.merged.module@5.4.76/com.sun.javafx.tk.quantum.QuantumToolkit.runWithoutRenderLock(Unknown Source) at org.jabref.merged.module@5.4.76/com.sun.javafx.tk.quantum.GlassViewEventHandler.handleMouseEvent(Unknown Source) at org.jabref.merged.module@5.4.76/com.sun.glass.ui.View.handleMouseEvent(Unknown Source) at org.jabref.merged.module@5.4.76/com.sun.glass.ui.View.notifyMouse(Unknown Source) at org.jabref.merged.module@5.4.76/com.sun.glass.ui.win.WinApplication._runLoop(Native Method) at org.jabref.merged.module@5.4.76/com.sun.glass.ui.win.WinApplication.lambda$runLoop$3(Unknown Source) at java.base/java.lang.Thread.run(Unknown Source)