Project: Eclipse_Platform_UI
Bug 337636 NPE with extensibleSpashHandler extension
Reported: 2011-02-19 10:23:58 | Status: verified fixed

Build Identifier: 4.1 M5 I have an extensible splash handler that fails and stays on screen with a NPE where it looks like the e4context is not initialized at that point. the splashhandler is nearly almost equal to the template java.lang.NullPointerException at org.eclipse.ui.internal.WorkbenchPlugin.getSharedImages(WorkbenchPlugin.java:643) at org.eclipse.ui.internal.Workbench.getSharedImages(Workbench.java:1235) at org.eclipse.ui.plugin.AbstractUIPlugin.imageDescriptorFromPlugin(AbstractUIPlugin.java:670) at de.eiswind.mango.client.core.splashHandlers.ExtensibleSplashHandler.processSplashElementIcon(ExtensibleSplashHandler.java:240) at de.eiswind.mango.client.core.splashHandlers.ExtensibleSplashHandler.processSplashElements(ExtensibleSplashHandler.java:210) at de.eiswind.mango.client.core.splashHandlers.ExtensibleSplashHandler.processSplashExtension(ExtensibleSplashHandler.java:201) at de.eiswind.mango.client.core.splashHandlers.ExtensibleSplashHandler.loadSplashExtensions(ExtensibleSplashHandler.java:189) at de.eiswind.mango.client.core.splashHandlers.ExtensibleSplashHandler.init(ExtensibleSplashHandler.java:68) at org.eclipse.ui.internal.Workbench$4.run(Workbench.java:694) at org.eclipse.core.runtime.SafeRunner.run(SafeRunner.java:42) at org.eclipse.ui.internal.Workbench.createSplashWrapper(Workbench.java:715) at org.eclipse.ui.internal.Workbench.runUI(Workbench.java:2330) at org.eclipse.ui.internal.Workbench.access$3(Workbench.java:2303) at org.eclipse.ui.internal.Workbench$3.run(Workbench.java:538) at org.eclipse.core.databinding.observable.Realm.runWithDefault(Realm.java:332) at org.eclipse.ui.internal.Workbench.createAndRunWorkbench(Workbench.java:522) at org.eclipse.ui.PlatformUI.createAndRunWorkbench(PlatformUI.java:149) at de.eiswind.paris.client.core.Application.start(Application.java:33) at org.eclipse.equinox.internal.app.EclipseAppHandle.run(EclipseAppHandle.java:196) at org.eclipse.core.runtime.internal.adaptor.EclipseAppLauncher.runApplication(EclipseAppLauncher.java:110) at org.eclipse.core.runtime.internal.adaptor.EclipseAppLauncher.start(EclipseAppLauncher.java:79) at org.eclipse.core.runtime.adaptor.EclipseStarter.run(EclipseStarter.java:344) at org.eclipse.core.runtime.adaptor.EclipseStarter.run(EclipseStarter.java:179) at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method) at sun.reflect.NativeMethodAccessorImpl.invoke(Unknown Source) at sun.reflect.DelegatingMethodAccessorImpl.invoke(Unknown Source) at java.lang.reflect.Method.invoke(Unknown Source) at org.eclipse.equinox.launcher.Main.invokeFramework(Main.java:622) at org.eclipse.equinox.launcher.Main.basicRun(Main.java:577) at org.eclipse.equinox.launcher.Main.run(Main.java:1410) at org.eclipse.equinox.launcher.Main.main(Main.java:1386) Reproducible: Always Steps to Reproduce: 1. create an extensible splash handler 2. add some images 3. start up

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