Eclipse Community Forums - RDF feed
https://www.eclipse.org/forums/
Eclipse Community Forums[Grid/GridViewer] IndexOutOfBoundsException
https://www.eclipse.org/forums/index.php/mv/msg/186895/592913/#msg_592913
I came across a IndexOutOfBoundsException when using the Grid together with
the GridViewer. I'm using CellSelectionEnabled(true) and have added a filter
to the GridViewer. When the Filter returns 0 rows and you click on the
TopLeft Corner (ie selecting all cells) the following exeception is thrown:
java.lang.IndexOutOfBoundsException: Index: 0, Size: 0
at java.util.ArrayList.RangeCheck(ArrayList.java:547)
at java.util.ArrayList.get(ArrayList.java:322)
at org.eclipse.nebula.widgets.grid.Grid.selectAllCells(Grid.jav a:8798)
at org.eclipse.nebula.widgets.grid.Grid.onMouseDown(Grid.java:6 708)
at org.eclipse.nebula.widgets.grid.Grid.access$6(Grid.java:6526 )
at org.eclipse.nebula.widgets.grid.Grid$10.mouseDown(Grid.java: 6402)