Bug in Grid class, row count reported on column out of bounds error

10 views
Skip to first unread message

dparker

unread,
Aug 13, 2006, 6:11:03 PM8/13/06
to Google Web Toolkit
Minor problem, the check is correct, but the report is wrong, so you
can get:

java.lang.IndexOutOfBoundsException: There are 1 columns, so no element
can be added at column 0


The code (in 1.1.0) in prepareCell looks like this:

if (column >= numColumns) {
throw new IndexOutOfBoundsException("There are " + numRows
+ " columns, so no element can be added at column " + column);
}

Emily

unread,
Aug 14, 2006, 7:02:34 AM8/14/06
to Google Web Toolkit
Yep, looks like a bug to me.

Reply all
Reply to author
Forward
0 new messages