Bug #5301
closedclicking on Image item Scale Property Value sometimes gives ArrayIndexOutOfBoundException
0%
Description
Clicking on Image item Scale Property Value sometimes gives ArrayIndexOutOfBoundException, seems to happen after changing the scale of another report item.
Updated by Derik Barseghian almost 14 years ago
Ok, I've finally figured out a way to reliably replicate this bug. This bug can occur for any report design item with fewer settable Properties than the max number of settable Properties for any report design item (currently 3). So Image, which has 1, and HR, which has 2, can be affected. To replicate, drag out an Image or HR to your report design, and also drag out a report item that has 3 settable properties, like Section. When Section is selected, click in the Value area for the 3rd settable property to put the cell into editor mode, and then leaving that cell in editor mode, select your Image or HR item, and then click in the value area to try to change a property. The cell won't switch to editor mode and the ArrayIndexOutOfBoundsException will occur.
Updated by Derik Barseghian almost 14 years ago
fixed at r27113. just don't attempt to access index that's out of bounds. This works fine, but I've included a note in PropertiesPanel.java re: a better fix.