Project: Eclipse_Platform_UI
Bug 80696 [Preferences] PreferencePage NPE
Reported: 2004-12-10 10:19:02 | Status: verified fixed

JFaceResources.getImage(Dialog.DLG_IMG_MESSAGE_ERROR) might return null @@@@ !ENTRY org.eclipse.core.runtime 4 2 2004-12-10 16:13:38.218 !MESSAGE Problems occurred when invoking code from plug-in: "org.eclipse.core.runtime". !STACK 0 java.lang.NullPointerException at org.eclipse.jface.preference.PreferencePage$MessageRegion.createContents(PreferencePage.java:109) at org.eclipse.jface.preference.PreferencePage.createMessageArea(PreferencePage.java:489) at org.eclipse.jface.preference.PreferencePage.createControl(PreferencePage.java:428) at org.eclipse.jface.preference.PreferencePage.createControl(PreferencePage.java:378) at org.eclipse.ui.internal.dialogs.WorkbenchPreferenceDialog.createPageControl(WorkbenchPreferenceDialog.java:994) at org.eclipse.jface.preference.PreferenceDialog$13.run(PreferenceDialog.java:1116) at org.eclipse.core.internal.runtime.InternalPlatform.run(InternalPlatform.java:1044) at org.eclipse.core.runtime.Platform.run(Platform.java:747) at org.eclipse.jface.preference.PreferenceDialog.showPage(PreferenceDialog.java:1110) at org.eclipse.ui.internal.dialogs.WorkbenchPreferenceDialog.showPage(WorkbenchPreferenceDialog.java:782) at org.eclipse.jface.preference.PreferenceDialog$9.selectionChanged(PreferenceDialog.java:619) at org.eclipse.jface.viewers.StructuredViewer$3.run(StructuredViewer.java:681) at org.eclipse.core.internal.runtime.InternalPlatform.run(InternalPlatform.java:1044) at org.eclipse.core.runtime.Platform.run(Platform.java:747) at org.eclipse.jface.viewers.StructuredViewer.firePostSelectionChanged(StructuredViewer.java:679) at org.eclipse.jface.viewers.StructuredViewer.handlePostSelect(StructuredViewer.java:950) at org.eclipse.jface.viewers.StructuredViewer$5.widgetSelected(StructuredViewer.java:970) at org.eclipse.jface.util.OpenStrategy.firePostSelectionEvent(OpenStrategy.java:231) at org.eclipse.jface.util.OpenStrategy.access$4(OpenStrategy.java:226) at org.eclipse.jface.util.OpenStrategy$3.run(OpenStrategy.java:392) at org.eclipse.swt.widgets.RunnableLock.run(RunnableLock.java:35) at org.eclipse.swt.widgets.Synchronizer.runAsyncMessages(Synchronizer.java:118) at org.eclipse.swt.widgets.Display.runAsyncMessages(Display.java:2780) at org.eclipse.swt.widgets.Display.readAndDispatch(Display.java:2451) at org.eclipse.jface.window.Window.runEventLoop(Window.java:718) at org.eclipse.jface.window.Window.open(Window.java:696) at org.eclipse.ui.internal.OpenPreferencesAction.run(OpenPreferencesAction.java:64) at org.eclipse.jface.action.Action.runWithEvent(Action.java:989) at org.eclipse.jface.action.ActionContributionItem.handleWidgetSelection(ActionContributionItem.java:555) at org.eclipse.jface.action.ActionContributionItem.access$2(ActionContributionItem.java:505) at org.eclipse.jface.action.ActionContributionItem$6.handleEvent(ActionContributionItem.java:419) at org.eclipse.swt.widgets.EventTable.sendEvent(EventTable.java:82) at org.eclipse.swt.widgets.Widget.sendEvent(Widget.java:814) at org.eclipse.swt.widgets.Display.runDeferredEvents(Display.java:2803) at org.eclipse.swt.widgets.Display.readAndDispatch(Display.java:2448) at org.eclipse.ui.internal.Workbench.runEventLoop(Workbench.java:1578) at org.eclipse.ui.internal.Workbench.runUI(Workbench.java:1549) at org.eclipse.ui.internal.Workbench.createAndRunWorkbench(Workbench.java:281) at org.eclipse.ui.PlatformUI.createAndRunWorkbench(PlatformUI.java:144) at de.silpion.abends.ui.PlannerApplication.runWorkbench(PlannerApplication.java:404) at de.silpion.abends.ui.PlannerApplication.run(PlannerApplication.java:316) at org.eclipse.core.internal.runtime.PlatformActivator$1.run(PlatformActivator.java:220) at org.eclipse.core.runtime.adaptor.EclipseStarter.run(EclipseStarter.java:273) at org.eclipse.core.runtime.adaptor.EclipseStarter.run(EclipseStarter.java:129) 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:585) at org.eclipse.core.launcher.Main.basicRun(Main.java:185) at org.eclipse.core.launcher.Main.run(Main.java:710) at org.eclipse.core.launcher.Main.main(Main.java:694) @@@@ Version: 3.1.0 Build id: 200412081200

Files changed in fix:
bundles/org.eclipse.jface/src/org/eclipse/jface/preference/PreferencePage.java