Project: Eclipse_Platform_UI
Bug 30340 [Editor Mgmt] NPE restoring workbench state
Reported: 2003-01-27 18:11:14 | Status: resolved fixed

Build 20030121 Linux-GTK During startup, I got a "Failed to restore the workbench layout" notification and the following was in my log: !SESSION Jan 27, 2003 17:36:38.102 --------------------------------------------- java.fullversion=J2RE 1.3.1 IBM build cxia32131-20020410 (JIT enabled: jitc) BootLoader constants: OS=linux, ARCH=x86, WS=gtk, NL=en_US Command-line arguments: -os linux -ws gtk -arch x86 -debug -dev bin -data /home/jburns/target -install file:/home/jburns/host/eclipse/ !ENTRY org.eclipse.ui.workbench 4 2 Jan 27, 2003 17:36:38.104 !MESSAGE Problems occurred when invoking code from plug-in: "org.eclipse.ui.workbench". !STACK 0 java.lang.NullPointerException at org.eclipse.ui.internal.EditorManager.restoreState(EditorManager.java:725) at org.eclipse.ui.internal.WorkbenchPage.restoreState(WorkbenchPage.java:2043) at org.eclipse.ui.internal.WorkbenchWindow.restoreState(WorkbenchWindow.java:1127) at org.eclipse.ui.internal.Workbench.restoreState(Workbench.java:1379) at org.eclipse.ui.internal.Workbench.access$9(Workbench.java:1348) at org.eclipse.ui.internal.Workbench$10.run(Workbench.java:1002) at org.eclipse.core.internal.runtime.InternalPlatform.run(InternalPlatform.java:852) at org.eclipse.core.runtime.Platform.run(Platform.java:413) at org.eclipse.ui.internal.Workbench.openPreviousWorkbenchState(Workbench.java:954) at org.eclipse.ui.internal.Workbench.init(Workbench.java:733) at org.eclipse.ui.internal.Workbench.run(Workbench.java:1501) at org.eclipse.core.internal.boot.InternalBootLoader.run(InternalBootLoader.java:845) 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:247) at org.eclipse.core.launcher.Main.run(Main.java:703) at org.eclipse.core.launcher.Main.main(Main.java:539)

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