Project: Eclipse_Platform_UI
Bug 111889 [Preferences] NPE in Editors preference page
Reported: 2005-10-07 08:43:44 | Status: verified fixed

I was switching on multiple editor tabs in the Editors preference page. I clicked the checkbox using the mouse and then hit enter to close the dialog. For some reason I was greeted with the following: ava.lang.NullPointerException at org.eclipse.ui.internal.WorkbenchWindow.showHeapStatus(WorkbenchWindow.java:3173) at org.eclipse.ui.internal.dialogs.WorkbenchPreferencePage.updateHeapStatus (WorkbenchPreferencePage.java:387) at org.eclipse.ui.internal.dialogs.WorkbenchPreferencePage.performOk(WorkbenchPreferencePage.java: 360) at org.eclipse.ui.internal.ide.dialogs.IDEWorkbenchPreferencePage.performOk (IDEWorkbenchPreferencePage.java:73) at org.eclipse.jface.preference.PreferenceDialog$11.run(PreferenceDialog.java:862) at org.eclipse.core.internal.runtime.InternalPlatform.run(InternalPlatform.java:1044) at org.eclipse.core.runtime.Platform.run(Platform.java:783) at org.eclipse.ui.internal.JFaceUtil$1.run(JFaceUtil.java:44) at org.eclipse.jface.util.SafeRunnable.run(SafeRunnable.java:148) at org.eclipse.jface.preference.PreferenceDialog.okPressed(PreferenceDialog.java:842) at org.eclipse.ui.internal.dialogs.FilteredPreferenceDialog.okPressed(FilteredPreferenceDialog.java:296) at org.eclipse.ui.internal.dialogs.WorkbenchPreferenceDialog.okPressed (WorkbenchPreferenceDialog.java:164) at org.eclipse.jface.preference.PreferenceDialog.buttonPressed(PreferenceDialog.java:227) at org.eclipse.jface.dialogs.Dialog$2.widgetSelected(Dialog.java:607) at org.eclipse.swt.widgets.TypedListener.handleEvent(TypedListener.java:90) at org.eclipse.swt.widgets.EventTable.sendEvent(EventTable.java:66) at org.eclipse.swt.widgets.Widget.sendEvent(Widget.java:1412) at org.eclipse.swt.widgets.Widget.sendEvent(Widget.java:1436) at org.eclipse.swt.widgets.Widget.sendEvent(Widget.java:1421) at org.eclipse.swt.widgets.Widget.notifyListeners(Widget.java:1251) at org.eclipse.swt.widgets.Display.runDeferredEvents(Display.java:3099) at org.eclipse.swt.widgets.Display.readAndDispatch(Display.java:2752) at org.eclipse.jface.window.Window.runEventLoop(Window.java:809) at org.eclipse.jface.window.Window.open(Window.java:787) at org.eclipse.ui.internal.OpenPreferencesAction.run(OpenPreferencesAction.java:66) at org.eclipse.ui.carbon.CarbonUIEnhancer.runAction(CarbonUIEnhancer.java:314) at org.eclipse.ui.carbon.CarbonUIEnhancer.access$1(CarbonUIEnhancer.java:296) at org.eclipse.ui.carbon.CarbonUIEnhancer$4.commandProc(CarbonUIEnhancer.java:238) at org.eclipse.swt.internal.carbon.OS.SendEventToEventTarget(Native Method) at org.eclipse.swt.widgets.Display.readAndDispatch(Display.java:2722) at org.eclipse.ui.internal.Workbench.runEventLoop(Workbench.java:1763) at org.eclipse.ui.internal.Workbench.runUI(Workbench.java:1727) at org.eclipse.ui.internal.Workbench.createAndRunWorkbench(Workbench.java:371) at org.eclipse.ui.PlatformUI.createAndRunWorkbench(PlatformUI.java:143) at org.eclipse.ui.internal.ide.IDEApplication.run(IDEApplication.java:106) at org.eclipse.core.internal.runtime.PlatformActivator$1.run(PlatformActivator.java:226) at org.eclipse.core.runtime.adaptor.EclipseStarter.run(EclipseStarter.java:377) at org.eclipse.core.runtime.adaptor.EclipseStarter.run(EclipseStarter.java:164) 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.invokeFramework(Main.java:338) at org.eclipse.core.launcher.Main.basicRun(Main.java:282) at org.eclipse.core.launcher.Main.run(Main.java:977) at org.eclipse.core.launcher.Main.main(Main.java:952)

Files changed in fix:
bundles/org.eclipse.ui.workbench/Eclipse UI/org/eclipse/ui/internal/WorkbenchWindow.java