[Grid/GridViewer] IndexOutOfBoundsException [message #592913] |
Tue, 09 December 2008 16:10 |
Tommy Gustafsson Messages: 12 Registered: July 2009 |
Junior Member |
|
|
Hi
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)
BR
Tommy
|
|
|
Powered by
FUDForum. Page generated in 0.02486 seconds