Project: Eclipse_Platform_UI
Bug 28630 [Preferences] NPE in font preference page on Apply
Reported: 2002-12-18 11:53:10 | Status: closed fixed

Build I20021217 1. Start empty workspace 2. Window->Preferences->Workbench->Fonts 3. Select "Text Font" 4. Press Change... 5. Change the size to 12 and press OK to close the font dialog 6. Press Apply ==> NPE (see below) Note: no NPE if OK is pressed instead of Apply !SESSION Dez 18, 2002 18:01:06.609 --------------------------------------------- java.version=1.3.1_02 java.vendor=Sun Microsystems Inc. BootLoader constants: OS=win32, ARCH=x86, WS=win32, NL=de_CH Command-line arguments: -os win32 -ws win32 -arch x86 -install file:D:/eclipse_I20021217/ !ENTRY org.eclipse.ui 4 4 Dez 18, 2002 18:01:06.609 !MESSAGE Unhandled exception caught in event loop. !ENTRY org.eclipse.ui 4 0 Dez 18, 2002 18:01:06.609 !MESSAGE java.lang.NullPointerException !STACK 0 java.lang.NullPointerException at org.eclipse.ui.internal.dialogs.FontPreferencePage.performApply(FontPreferencePage.java:590) at org.eclipse.jface.preference.PreferencePage$2.widgetSelected(PreferencePage.java:264) at org.eclipse.swt.widgets.TypedListener.handleEvent(TypedListener.java:87) at org.eclipse.swt.widgets.EventTable.sendEvent(EventTable.java:77) at org.eclipse.swt.widgets.Widget.sendEvent(Widget.java:825) at org.eclipse.swt.widgets.Display.runDeferredEvents(Display.java:1692) at org.eclipse.swt.widgets.Display.readAndDispatch(Display.java:1410) at org.eclipse.jface.window.Window.runEventLoop(Window.java:561) at org.eclipse.jface.window.Window.open(Window.java:541) at org.eclipse.ui.internal.OpenPreferencesAction.run(OpenPreferencesAction.java:47) at org.eclipse.jface.action.Action.runWithEvent(Action.java:769) at org.eclipse.jface.action.ActionContributionItem.handleWidgetSelection(ActionContributionItem.java:411) at org.eclipse.jface.action.ActionContributionItem.handleWidgetEvent(ActionContributionItem.java:365) at org.eclipse.jface.action.ActionContributionItem.access$0(ActionContributionItem.java:356) at org.eclipse.jface.action.ActionContributionItem$ActionListener.handleEvent(ActionContributionItem.java:48) at org.eclipse.swt.widgets.EventTable.sendEvent(EventTable.java:77) at org.eclipse.swt.widgets.Widget.sendEvent(Widget.java:825) at org.eclipse.swt.widgets.Display.runDeferredEvents(Display.java:1692) at org.eclipse.swt.widgets.Display.readAndDispatch(Display.java:1410) at org.eclipse.ui.internal.Workbench.runEventLoop(Workbench.java:1446) at org.eclipse.ui.internal.Workbench.run(Workbench.java:1429) at org.eclipse.core.internal.boot.InternalBootLoader.run(InternalBootLoader.java:845) at org.eclipse.core.boot.BootLoader.run(BootLoader.java:462) at java.lang.reflect.Method.invoke(Native Method) at org.eclipse.core.launcher.Main.basicRun(Main.java:247) at org.eclipse.core.launcher.Main.run(Main.java:703) at org.eclipse.core.launcher.Main.main(Main.java:539)

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