Project: Eclipse_Platform_UI
Bug 184956 Internal error (NPE) when switching perspectives
Reported: 2007-05-01 14:55:48 | Status: verified fixed

I20070501-0010. Start with a fresh workbench, close the Intro Switch to the Resource perspective (I used ctrl-3) I get: An internal error occurred during: "Decoration Calculation". with the following stacktrace java.lang.NullPointerException at org.eclipse.jface.resource.JFaceResources.getResources(JFaceResources.java:203) at org.eclipse.jface.resource.JFaceResources.getResources(JFaceResources.java:228) at org.eclipse.ui.internal.decorators.OverlayCache.<init>(OverlayCache.java:48) at org.eclipse.ui.internal.decorators.LightweightDecoratorManager.<init>(LightweightDecoratorManager.java:90) at org.eclipse.ui.internal.decorators.DecoratorManager.initializeDecoratorDefinitions(DecoratorManager.java:144) at org.eclipse.ui.internal.decorators.DecoratorManager.getLightweightManager(DecoratorManager.java:842) at org.eclipse.ui.internal.decorators.DecorationScheduler$1.ensureResultCached(DecorationScheduler.java:363) at org.eclipse.ui.internal.decorators.DecorationScheduler$1.run(DecorationScheduler.java:325) at org.eclipse.core.internal.jobs.Worker.run(Worker.java:55)

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