Project: SWT
Bug 44778 TableItem.getImage periodically throws ArrayOutOfBoundsException
Reported: 2003-10-13 16:26:33 | Status: resolved fixed

In the final call to imageList.get (imageIndex), sometimes imageIndex == -1. This causes an ArrayIndexOutOfBounds exception in the call to imageList.get. This is happening because the index of ptr [0] is not in the table. Would it be possible to put in a check for this? It causes a bunch of other downstream errors.

Files changed in fix:
bundles/org.eclipse.swt/Eclipse SWT/gtk/org/eclipse/swt/widgets/TableItem.java