Community
Participate
Working Groups
If an invalid value is sent into a combobox celleditor (i.e. it is not one of the valid indexes the cell editor can support), the applyEditorValueAndDeactivate() method throws an ArrayIndexOutOfBounds exception. Here is the code that throws the exception: if (!isValid) { // try to insert the current value into the error message. setErrorMessage( MessageFormat.format(getErrorMessage(), new Object[] {items[selection]})); } It throws the exception on items[selection] because the value of selection is invalid. Since it is invalid to get here, it should be able to handle this case. The items[selection] should be replaced by: (selection >= 0 && selection < items.length) ? items[selection] : "?" This way it can handle something invalid and not throw an exception. Thanks, Rich
Which version of 3.0 are you using?
I20040616 eclipse driver.
*** This bug has been marked as a duplicate of 60462 ***