Project: Eclipse_Platform_UI
Bug 77468 [ErrorHandling] NPE in Perspective.loadPredefinedPersp
Reported: 2004-11-02 07:47:21 | Status: verified fixed

eclipse.buildId=I200411020010 java.version=1.4.2_03 java.vendor=Sun Microsystems Inc. BootLoader constants: OS=win32, ARCH=x86, WS=win32, NL=en Command-line arguments: -showlocation 1) Launch eclipse with a brand new workspace 2) Try to open the CVS perspective java.lang.NullPointerException at org.eclipse.ui.internal.Perspective.loadPredefinedPersp (Perspective.java:715) at org.eclipse.ui.internal.Perspective.createPresentation (Perspective.java:229) at org.eclipse.ui.internal.Perspective.<init>(Perspective.java:123) at org.eclipse.ui.internal.WorkbenchPage.createPerspective (WorkbenchPage.java:1159) at org.eclipse.ui.internal.WorkbenchPage.busySetPerspective (WorkbenchPage.java:760) at org.eclipse.ui.internal.WorkbenchPage.access$8 (WorkbenchPage.java:752) at org.eclipse.ui.internal.WorkbenchPage$12.run (WorkbenchPage.java:3019) at org.eclipse.swt.custom.BusyIndicator.showWhile (BusyIndicator.java:69) at org.eclipse.ui.internal.WorkbenchPage.setPerspective (WorkbenchPage.java:3017) at org.eclipse.ui.internal.ChangeToPerspectiveMenu.run (ChangeToPerspectiveMenu.java:88) at org.eclipse.ui.actions.PerspectiveMenu.run(PerspectiveMenu.java:306) at org.eclipse.ui.actions.PerspectiveMenu$3.widgetSelected (PerspectiveMenu.java:117) at org.eclipse.swt.widgets.TypedListener.handleEvent (TypedListener.java:89) at org.eclipse.swt.widgets.EventTable.sendEvent(EventTable.java:82) at org.eclipse.swt.widgets.Widget.sendEvent(Widget.java:800) at org.eclipse.swt.widgets.Display.runDeferredEvents(Display.java:2794) at org.eclipse.swt.widgets.Display.readAndDispatch(Display.java:2448) at org.eclipse.ui.internal.Workbench.runEventLoop(Workbench.java:1527) at org.eclipse.ui.internal.Workbench.runUI(Workbench.java:1498) at org.eclipse.ui.internal.Workbench.createAndRunWorkbench (Workbench.java:276) at org.eclipse.ui.PlatformUI.createAndRunWorkbench(PlatformUI.java:144) at org.eclipse.ui.internal.ide.IDEApplication.run (IDEApplication.java:102) at org.eclipse.core.internal.runtime.PlatformActivator$1.run (PlatformActivator.java:335) 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:324) at org.eclipse.core.launcher.Main.basicRun(Main.java:185) at org.eclipse.core.launcher.Main.run(Main.java:704) at org.eclipse.core.launcher.Main.main(Main.java:688) Also get a ClassNotFoundException for the CVSPerspective: java.lang.ClassNotFoundException: org.eclipse.team.internal.ccvs.ui.CVSPerspective at org.eclipse.osgi.framework.internal.core.BundleLoader.findClass (BundleLoader.java:404) at org.eclipse.osgi.framework.adaptor.core.AbstractClassLoader.loadClass (AbstractClassLoader.java:93) at java.lang.ClassLoader.loadClass(ClassLoader.java:235) at org.eclipse.osgi.framework.internal.core.BundleLoader.loadClass (BundleLoader.java:307) at org.eclipse.osgi.framework.internal.core.BundleHost.loadClass (BundleHost.java:336) at org.eclipse.osgi.framework.internal.core.AbstractBundle.loadClass (AbstractBundle.java:1313) at org.eclipse.core.internal.registry.ConfigurationElement.createExecutableExtensi on(ConfigurationElement.java:131) at org.eclipse.core.internal.registry.ConfigurationElement.createExecutableExtensi on(ConfigurationElement.java:124) at org.eclipse.core.internal.registry.ConfigurationElement.createExecutableExtensi on(ConfigurationElement.java:113) at org.eclipse.ui.internal.registry.InstanceTracker.getExecutableExtension (InstanceTracker.java:64) at org.eclipse.ui.internal.registry.PerspectiveDescriptor.createFactory (PerspectiveDescriptor.java:179) at org.eclipse.ui.internal.Perspective.loadPredefinedPersp (Perspective.java:654) at org.eclipse.ui.internal.Perspective.createPresentation(Perspective.java:229) at org.eclipse.ui.internal.Perspective.<init>(Perspective.java:123) at org.eclipse.ui.internal.WorkbenchPage.createPerspective (WorkbenchPage.java:1159) at org.eclipse.ui.internal.WorkbenchPage.busySetPerspective (WorkbenchPage.java:760) at org.eclipse.ui.internal.WorkbenchPage.access$8(WorkbenchPage.java:752) at org.eclipse.ui.internal.WorkbenchPage$12.run(WorkbenchPage.java:3019) at org.eclipse.swt.custom.BusyIndicator.showWhile(BusyIndicator.java:69) at org.eclipse.ui.internal.WorkbenchPage.setPerspective (WorkbenchPage.java:3017) at org.eclipse.ui.internal.ChangeToPerspectiveMenu.run (ChangeToPerspectiveMenu.java:88) at org.eclipse.ui.actions.PerspectiveMenu.run(PerspectiveMenu.java:306) at org.eclipse.ui.actions.PerspectiveMenu$3.widgetSelected (PerspectiveMenu.java:117) at org.eclipse.swt.widgets.TypedListener.handleEvent(TypedListener.java:89) at org.eclipse.swt.widgets.EventTable.sendEvent(EventTable.java:82) at org.eclipse.swt.widgets.Widget.sendEvent(Widget.java:800) at org.eclipse.swt.widgets.Display.runDeferredEvents(Display.java:2794) at org.eclipse.swt.widgets.Display.readAndDispatch(Display.java:2448) at org.eclipse.ui.internal.Workbench.runEventLoop(Workbench.java:1527) at org.eclipse.ui.internal.Workbench.runUI(Workbench.java:1498) at org.eclipse.ui.internal.Workbench.createAndRunWorkbench(Workbench.java:276) at org.eclipse.ui.PlatformUI.createAndRunWorkbench(PlatformUI.java:144) at org.eclipse.ui.internal.ide.IDEApplication.run(IDEApplication.java:102) at org.eclipse.core.internal.runtime.PlatformActivator$1.run (PlatformActivator.java:335) 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:324) at org.eclipse.core.launcher.Main.basicRun(Main.java:185) at org.eclipse.core.launcher.Main.run(Main.java:704) at org.eclipse.core.launcher.Main.main(Main.java:688)

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