Project

General

Profile

bug #7614

IndexOutOfBoundsException after deleting in bulkeditor

Added by Katja Luther 5 months ago. Updated 4 months ago.

Status:
Closed
Priority:
Priority14
Category:
taxeditor
Target version:
Start date:
08/01/2018
Due date:
% Done:

50%

Severity:
normal
Found in Version:

Description

mail of WB:

Hallo,
beim Springen auf einen Listeneintrag nach durchgeführtem Delete eines anderen bekomme ich u.a. Fehler. Zur Sicherheit auch ein Screenshot.
HG
W

login : w.berendsohn
editor version : 5.1.2
server : api.cybertaxonomy.org (cybertaxonomy.org) / caryo_nepenthaceae
schema version : 5.0.0.0.20180514
os : Windows 10 10.0 amd64
java : 1.8.0_161
java.lang.IndexOutOfBoundsException: Cannot get at -1 on list of size 47
                at ca.odell.glazedlists.TransformedList.get(TransformedList.java:105)
                at org.eclipse.nebula.widgets.nattable.data.ListDataProvider.getRowObject(ListDataProvider.java:62)
                at eu.etaxonomy.taxeditor.bulkeditor.e4.BulkEditorE4.getSelection(BulkEditorE4.java:439)
                at eu.etaxonomy.taxeditor.bulkeditor.e4.BulkEditorE4.lambda$0(BulkEditorE4.java:178)
                at org.eclipse.nebula.widgets.nattable.selection.RowSelectionProvider.handleLayerEvent(RowSelectionProvider.java:277)
                at org.eclipse.nebula.widgets.nattable.layer.AbstractLayer.fireLayerEvent(AbstractLayer.java:307)
                at org.eclipse.nebula.widgets.nattable.selection.SelectionLayer.fireCellSelectionEvent(SelectionLayer.java:592)
                at org.eclipse.nebula.widgets.nattable.selection.SelectCellCommandHandler.doCommand(SelectCellCommandHandler.java:42)
                at org.eclipse.nebula.widgets.nattable.selection.SelectCellCommandHandler.doCommand(SelectCellCommandHandler.java:1)
                at org.eclipse.nebula.widgets.nattable.layer.AbstractLayer.doCommand(AbstractLayer.java:186)
                at org.eclipse.nebula.widgets.nattable.layer.AbstractIndexLayerTransform.doCommand(AbstractIndexLayerTransform.java:105)
                at org.eclipse.nebula.widgets.nattable.selection.SelectionLayer.doCommand(SelectionLayer.java:579)
                at org.eclipse.nebula.widgets.nattable.layer.AbstractLayerTransform.doCommand(AbstractLayerTransform.java:106)
                at org.eclipse.nebula.widgets.nattable.viewport.ViewportLayer.doCommand(ViewportLayer.java:1071)
                at org.eclipse.nebula.widgets.nattable.layer.AbstractIndexLayerTransform.doCommand(AbstractIndexLayerTransform.java:109)
                at org.eclipse.nebula.widgets.nattable.grid.layer.GridLayer.doCommandOnChildLayer(GridLayer.java:113)
                at org.eclipse.nebula.widgets.nattable.grid.layer.GridLayer.doCommandOnChildLayers(GridLayer.java:99)
                at org.eclipse.nebula.widgets.nattable.layer.CompositeLayer.doCommand(CompositeLayer.java:151)
                at org.eclipse.nebula.widgets.nattable.grid.layer.GridLayer.doCommand(GridLayer.java:187)
                at org.eclipse.nebula.widgets.nattable.NatTable.doCommand(NatTable.java:820)
                at org.eclipse.nebula.widgets.nattable.selection.action.SelectCellAction.run(SelectCellAction.java:25)
                at org.eclipse.nebula.widgets.nattable.ui.mode.ConfigurableModeEventHandler.mouseDown(ConfigurableModeEventHandler.java:45)
                at org.eclipse.nebula.widgets.nattable.ui.mode.ModeSupport.mouseDown(ModeSupport.java:108)
                at org.eclipse.swt.widgets.TypedListener.handleEvent(TypedListener.java:193)
                at org.eclipse.swt.widgets.EventTable.sendEvent(EventTable.java:84)
                at org.eclipse.swt.widgets.Display.sendEvent(Display.java:4418)
                at org.eclipse.swt.widgets.Widget.sendEvent(Widget.java:1079)
                at org.eclipse.swt.widgets.Display.runDeferredEvents(Display.java:4236)
                at org.eclipse.swt.widgets.Display.readAndDispatch(Display.java:3824)
                at org.eclipse.e4.ui.internal.workbench.swt.PartRenderingEngine$4.run(PartRenderingEngine.java:1121)
                at org.eclipse.core.databinding.observable.Realm.runWithDefault(Realm.java:336)
                at org.eclipse.e4.ui.internal.workbench.swt.PartRenderingEngine.run(PartRenderingEngine.java:1022)
                at org.eclipse.e4.ui.internal.workbench.E4Workbench.createAndRunUI(E4Workbench.java:150)
                at org.eclipse.ui.internal.Workbench$5.run(Workbench.java:693)
                at org.eclipse.core.databinding.observable.Realm.runWithDefault(Realm.java:336)
                at org.eclipse.ui.internal.Workbench.createAndRunWorkbench(Workbench.java:610)
                at org.eclipse.ui.PlatformUI.createAndRunWorkbench(PlatformUI.java:148)
                at eu.etaxonomy.taxeditor.Application.start(Application.java:24)
                at org.eclipse.equinox.internal.app.EclipseAppHandle.run(EclipseAppHandle.java:196)
                at org.eclipse.core.runtime.internal.adaptor.EclipseAppLauncher.runApplication(EclipseAppLauncher.java:134)
                at org.eclipse.core.runtime.internal.adaptor.EclipseAppLauncher.start(EclipseAppLauncher.java:104)
                at org.eclipse.core.runtime.adaptor.EclipseStarter.run(EclipseStarter.java:388)
                at org.eclipse.core.runtime.adaptor.EclipseStarter.run(EclipseStarter.java:243)
                at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
                at sun.reflect.NativeMethodAccessorImpl.invoke(Unknown Source)
                at sun.reflect.DelegatingMethodAccessorImpl.invoke(Unknown Source)
                at java.lang.reflect.Method.invoke(Unknown Source)
                at org.eclipse.equinox.launcher.Main.invokeFramework(Main.java:673)
                at org.eclipse.equinox.launcher.Main.basicRun(Main.java:610)
                at org.eclipse.equinox.launcher.Main.run(Main.java:1519)

screenshot_indexOutOfBoundsException.png View (38.9 KB) Katja Luther, 08/01/2018 02:26 PM

Associated revisions

Revision 4d0daece (diff)
Added by Patrick Plitzner 4 months ago

ref #7614 Fix possible IndexOutOfBoundException

Revision 36d28440 (diff)
Added by Patrick Plitzner 4 months ago

ref #7614 Fix possible IndexOutOfBoundException for label accumulation

Revision a101359e (diff)
Added by Patrick Plitzner 4 months ago

ref #7614 Catch negative index when getting the row object

History

#1 Updated by Katja Luther 5 months ago

  • Category set to taxeditor
  • Assignee set to Katja Luther
  • Priority changed from New to Priority14

#3 Updated by Katja Luther 5 months ago

PS: Das scheint an dem Record selbst zu liegen.

#4 Updated by Patrick Plitzner 4 months ago

There are cases when -1 is returned as the current row index. This is now caught before getting the element at the index position.

#5 Updated by Patrick Plitzner 4 months ago

  • Status changed from New to Resolved
  • % Done changed from 0 to 50

#6 Updated by Katja Luther 4 months ago

  • Status changed from Resolved to Closed
  • Assignee changed from Katja Luther to Patrick Plitzner

works fine now and the code seems to be correct.

#7 Updated by Andreas Müller 4 months ago

  • Target version changed from Unassigned CDM tickets to Release 5.2

Also available in: Atom PDF

Add picture from clipboard (Maximum size: 40 MB)