Project: Eclipse_Platform_UI
Bug 20166 NPE in ClassFileEditorActionContributor while restoring workbench
Reported: 2002-06-13 09:53:55 | Status: resolved fixed

F3 build (20020612) - exited 20020611 using self-hosting workspace - installed 20020612 - started it, pointing it to the old workspace - got an Unable to read Workbench State error dialog - log has: !SESSION Jun 13, 2002 10:04:27.272 -------------------------------------------- - java.fullversion=J2RE 1.3.1 IBM Windows 32 build cn131-20020403 (JIT enabled: jitc) BootLoader constants: OS=win32, ARCH=x86, WS=win32, NL=en_US Command-line arguments: -os win32 -ws win32 -arch x86 -dev bin -data d:\eclipse\plugins -update -install file:D:/eclipse20020612-F3/eclipse/ !ENTRY org.eclipse.ui 4 2 Jun 13, 2002 10:04:27.272 !MESSAGE Problems occurred when invoking code from plug-in: "org.eclipse.ui". !STACK 0 java.lang.NullPointerException at org.eclipse.jdt.internal.ui.javaeditor.ClassFileEditorActionContributor.setActi veEditor(ClassFileEditorActionContributor.java:88) at org.eclipse.ui.internal.EditorActionBars.partChanged (EditorActionBars.java:122) at org.eclipse.ui.internal.WorkbenchPage.onActivate (WorkbenchPage.java:1541) at org.eclipse.ui.internal.WorkbenchWindow$7.run (WorkbenchWindow.java:1209) at org.eclipse.swt.custom.BusyIndicator.showWhile (BusyIndicator.java:64) at org.eclipse.ui.internal.WorkbenchWindow.setActivePage (WorkbenchWindow.java:1196) at org.eclipse.ui.internal.WorkbenchWindow.restoreState (WorkbenchWindow.java:1089) at org.eclipse.ui.internal.Workbench.restoreState(Workbench.java:1080) at org.eclipse.ui.internal.Workbench.access$7(Workbench.java:1060) at org.eclipse.ui.internal.Workbench$6.run(Workbench.java:796) at org.eclipse.core.internal.runtime.InternalPlatform.run (InternalPlatform.java:813) at org.eclipse.core.runtime.Platform.run(Platform.java:416) at org.eclipse.ui.internal.Workbench.openPreviousWorkbenchState (Workbench.java:748) at org.eclipse.ui.internal.Workbench.init(Workbench.java:562) at org.eclipse.ui.internal.Workbench.run(Workbench.java:1153) at org.eclipse.core.internal.boot.InternalBootLoader.run (InternalBootLoader.java:739) 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:248) at org.eclipse.core.launcher.Main.run(Main.java:697) at org.eclipse.core.launcher.Main.main(Main.java:530)

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