Project: Eclipse_Platform_UI
Bug 13600 npe on running tests
Reported: 2002-04-12 06:09:43 | Status: resolved fixed

20020411 when running our test we get an npe (stack lower) it is due to the fact that field listeners in org.eclipse.jface.resource.FontRegistry is nullified in org.eclipse.jface.resource.FontRegistry::handleDisplayDispose() java.lang.NullPointerException at org.eclipse.jface.resource.FontRegistry.removeListener (FontRegistry.java:428) at org.eclipse.ui.internal.dialogs.WelcomeEditor$5.widgetDisposed (WelcomeEditor.java:297) at org.eclipse.swt.widgets.TypedListener.handleEvent (TypedListener.java:96) at org.eclipse.swt.widgets.EventTable.sendEvent(EventTable.java (Compiled Code)) at org.eclipse.swt.widgets.Widget.sendEvent(Widget.java:841) at org.eclipse.swt.widgets.Widget.sendEvent(Widget.java:827) at org.eclipse.swt.widgets.Widget.releaseWidget(Widget.java:737) at org.eclipse.swt.widgets.Control.releaseWidget(Control.java:1371) at org.eclipse.swt.widgets.Scrollable.releaseWidget(Scrollable.java:187) at org.eclipse.swt.widgets.Composite.releaseWidget(Composite.java:323) at org.eclipse.swt.widgets.Canvas.releaseWidget(Canvas.java:112) at org.eclipse.swt.widgets.Composite.releaseChildren(Composite.java:315) at org.eclipse.swt.widgets.Composite.releaseWidget(Composite.java:322) at org.eclipse.swt.widgets.Composite.releaseChildren(Composite.java:315) at org.eclipse.swt.widgets.Composite.releaseWidget(Composite.java:322) at org.eclipse.swt.widgets.Composite.releaseChildren(Composite.java:315) at org.eclipse.swt.widgets.Composite.releaseWidget(Composite.java:322) at org.eclipse.swt.widgets.Composite.releaseChildren(Composite.java:315) at org.eclipse.swt.widgets.Composite.releaseWidget(Composite.java:322) at org.eclipse.swt.widgets.Composite.releaseChildren(Composite.java:315) at org.eclipse.swt.widgets.Composite.releaseWidget(Composite.java:322) at org.eclipse.swt.widgets.Composite.releaseChildren(Composite.java:315) at org.eclipse.swt.widgets.Composite.releaseWidget(Composite.java:322) at org.eclipse.swt.widgets.Composite.releaseChildren(Composite.java:315) at org.eclipse.swt.widgets.Composite.releaseWidget(Composite.java:322) at org.eclipse.swt.widgets.Composite.releaseChildren(Composite.java:315) at org.eclipse.swt.widgets.Composite.releaseWidget(Composite.java:322) at org.eclipse.swt.widgets.Canvas.releaseWidget(Canvas.java:112) at org.eclipse.swt.widgets.Decorations.releaseWidget (Decorations.java:644) at org.eclipse.swt.widgets.Shell.releaseWidget(Shell.java:599) at org.eclipse.swt.widgets.Widget.dispose(Widget.java:355) at org.eclipse.swt.widgets.Shell.dispose(Shell.java:405) at org.eclipse.swt.widgets.Display.release(Display.java:1262) at org.eclipse.swt.graphics.Device.dispose(Device.java:198) at org.eclipse.ui.internal.Workbench.run(Workbench.java:824) at org.eclipse.core.internal.boot.InternalBootLoader.run (InternalBootLoader.java:777) at org.eclipse.core.boot.BootLoader.run(BootLoader.java:319) at java.lang.reflect.Method.invoke(Native Method) at org.eclipse.core.launcher.Main.basicRun(Main.java:190) at org.eclipse.core.launcher.Main.run(Main.java:549) at org.eclipse.core.launcher.UIMain.main(UIMain.java:52)

Files changed in fix:
bundles/org.eclipse.ui/Eclipse JFace/org/eclipse/jface/resource/FontRegistry.java bundles/org.eclipse.ui/Eclipse JFace/org/eclipse/jface/util/ListenerList.java