Project: Eclipse_Platform_UI
Bug 34142 [Editor Mgmt] Unable to read workbench state due to ArrayIndexOutOfBoundsException in NavigationHistory.restoreState
Reported: 2003-03-07 15:42:12 | Status: resolved fixed

Build id: 200303071024 Reopening a workspace I created today for testing this build, I got a message saying: "Unable to read workbench state. Workbench UI layout will be reset." I had no crashes in previous sessions. Unfortunately, I couldn't reproduce it anymore. Here is the log file: !SESSION Mar 07, 2003 15:12:59.906 --------------------------------------------- java.fullversion=J2RE 1.3.1 IBM Windows 32 build cn131-20020710 (JIT enabled: jitc) BootLoader constants: OS=win32, ARCH=x86, WS=win32, NL=en_CA Command-line arguments: -os win32 -ws win32 -arch x86 -debug -install file:D:/i20030307/eclipse/ !ENTRY org.eclipse.ui.workbench 4 2 Mar 07, 2003 15:12:59.906 !MESSAGE Problems occurred when invoking code from plug- in: "org.eclipse.ui.workbench". !STACK 0 java.lang.ArrayIndexOutOfBoundsException: -1 at org.eclipse.ui.internal.NavigationHistory.restoreState (NavigationHistory.java:424) at org.eclipse.ui.internal.WorkbenchPage.restoreState (WorkbenchPage.java:2331) at org.eclipse.ui.internal.WorkbenchWindow.restoreState (WorkbenchWindow.java:1327) at org.eclipse.ui.internal.Workbench.restoreState(Workbench.java:1261) at org.eclipse.ui.internal.Workbench.access$10(Workbench.java:1221) at org.eclipse.ui.internal.Workbench$12.run(Workbench.java:1139) at org.eclipse.core.internal.runtime.InternalPlatform.run (InternalPlatform.java:867) at org.eclipse.core.runtime.Platform.run(Platform.java:413) at org.eclipse.ui.internal.Workbench.openPreviousWorkbenchState (Workbench.java:1091) at org.eclipse.ui.internal.Workbench.init(Workbench.java:868) at org.eclipse.ui.internal.Workbench.run(Workbench.java:1371) at org.eclipse.core.internal.boot.InternalBootLoader.run (InternalBootLoader.java:845) at org.eclipse.core.boot.BootLoader.run(BootLoader.java:461) 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/NavigationHistory.java bundles/org.eclipse.ui.workbench/Eclipse UI/org/eclipse/ui/internal/NavigationHistoryEntry.java