Project: SWT
Bug 61239 TableItem NPE
Reported: 2004-05-06 11:38:53 | Status: resolved fixed

- run the JNI generator - select the OS class - select the ActivateKeyboardLayout method - left click in the Cast column of the second parameter (it does not have a cast value) - will get the following NPE: java.lang.NullPointerException at org.eclipse.swt.widgets.TableItem.getImageBounds(TableItem.java:409) at org.eclipse.swt.custom.TableEditor.computeBounds (TableEditor.java:103) at org.eclipse.swt.custom.ControlEditor.resize(ControlEditor.java:218) at org.eclipse.swt.custom.TableEditor.resize(TableEditor.java:219) at org.eclipse.swt.custom.TableEditor.setItem(TableEditor.java:195) at org.eclipse.swt.tools.internal.JNIGeneratorAppUI$10.handleEvent (JNIGeneratorAppUI.java:533) at org.eclipse.swt.widgets.EventTable.sendEvent(EventTable.java:82) at org.eclipse.swt.widgets.Widget.sendEvent(Widget.java:796) at org.eclipse.swt.widgets.Display.runDeferredEvents(Display.java:2652) at org.eclipse.swt.widgets.Display.readAndDispatch(Display.java:2324) at org.eclipse.swt.tools.internal.JNIGeneratorAppUI.run (JNIGeneratorAppUI.java:627) at org.eclipse.swt.tools.internal.JNIGeneratorAppUI.main (JNIGeneratorAppUI.java:890)

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