Project: SWT
Bug 66653 NPE on window close
Reported: 2004-06-11 08:10:46 | Status: resolved fixed

I200406110010 Quite often I find this NPE in the log: !ENTRY org.eclipse.ui 4 0 Jun 11, 2004 13:14:37.292 !MESSAGE java.lang.NullPointerException !STACK 0 java.lang.NullPointerException at org.eclipse.swt.widgets.Control.kEventControlSetFocusPart(Control.java:1369) at org.eclipse.swt.widgets.Composite.kEventControlSetFocusPart(Composite.java:352) at org.eclipse.swt.widgets.Widget.controlProc(Widget.java:317) at org.eclipse.swt.widgets.Display.controlProc(Display.java:743) at org.eclipse.swt.internal.carbon.OS.DisposeWindow(Native Method) at org.eclipse.swt.widgets.Shell.destroyWidget(Shell.java:488) at org.eclipse.swt.widgets.Widget.dispose(Widget.java:482) at org.eclipse.jface.window.Window.close(Window.java:253) at org.eclipse.jface.dialogs.Dialog.close(Dialog.java:826) at org.eclipse.jface.preference.PreferenceDialog.close(PreferenceDialog.java:253) at org.eclipse.jface.preference.PreferenceDialog.cancelPressed(PreferenceDialog.java:233) at org.eclipse.jface.preference.PreferenceDialog.buttonPressed(PreferenceDialog.java:203) at org.eclipse.ui.internal.dialogs.WorkbenchPreferenceDialog.buttonPressed(WorkbenchPreferenceDialog.j ava:75) at org.eclipse.jface.dialogs.Dialog$2.widgetSelected(Dialog.java:506) at org.eclipse.swt.widgets.TypedListener.handleEvent(TypedListener.java:89) at org.eclipse.swt.widgets.EventTable.sendEvent(EventTable.java:82) at org.eclipse.swt.widgets.Widget.sendEvent(Widget.java:1196) at org.eclipse.swt.widgets.Widget.sendEvent(Widget.java:1220) at org.eclipse.swt.widgets.Widget.sendEvent(Widget.java:1205) at org.eclipse.swt.widgets.Widget.notifyListeners(Widget.java:1053) at org.eclipse.swt.widgets.Display.runDeferredEvents(Display.java:2868) at org.eclipse.swt.widgets.Display.readAndDispatch(Display.java:2538) at org.eclipse.jface.window.Window.runEventLoop(Window.java:668) at org.eclipse.jface.window.Window.open(Window.java:648) at org.eclipse.ui.internal.OpenPreferencesAction.run(OpenPreferencesAction.java:72) at org.eclipse.jface.action.Action.runWithEvent(Action.java:881) at org.eclipse.jface.action.ActionContributionItem.handleWidgetSelection(ActionContributionItem.java: 915) at org.eclipse.jface.action.ActionContributionItem.access$2(ActionContributionItem.java:866) at org.eclipse.jface.action.ActionContributionItem$7.handleEvent(ActionContributionItem.java: 785) at org.eclipse.swt.widgets.EventTable.sendEvent(EventTable.java:82) at org.eclipse.swt.widgets.Widget.sendEvent(Widget.java:1196) at org.eclipse.swt.widgets.Widget.sendEvent(Widget.java:1220) at org.eclipse.swt.widgets.Widget.sendEvent(Widget.java:1205) at org.eclipse.swt.widgets.Widget.notifyListeners(Widget.java:1053) at org.eclipse.swt.widgets.Display.runDeferredEvents(Display.java:2868) at org.eclipse.swt.widgets.Display.readAndDispatch(Display.java:2538) at org.eclipse.ui.internal.Workbench.runEventLoop(Workbench.java:1362) at org.eclipse.ui.internal.Workbench.runUI(Workbench.java:1333) at org.eclipse.ui.internal.Workbench.createAndRunWorkbench(Workbench.java:252) at org.eclipse.ui.PlatformUI.createAndRunWorkbench(PlatformUI.java:141) at org.eclipse.ui.internal.ide.IDEApplication.run(IDEApplication.java:96) at org.eclipse.core.internal.runtime.PlatformActivator$1.run(PlatformActivator.java:334) at org.eclipse.core.runtime.adaptor.EclipseStarter.run(EclipseStarter.java:272) at org.eclipse.core.runtime.adaptor.EclipseStarter.run(EclipseStarter.java:128) at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method) at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:39) at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:25) at java.lang.reflect.Method.invoke(Method.java:324) at org.eclipse.core.launcher.Main.basicRun(Main.java:185) at org.eclipse.core.launcher.Main.run(Main.java:638) at org.eclipse.core.launcher.Main.main(Main.java:622) java.lang.NullPointerException

Files changed in fix:
bundles/org.eclipse.swt/Eclipse SWT/carbon/org/eclipse/swt/widgets/Combo.java