Project: Eclipse_Platform_UI
Bug 67729 NPE on startup (all the time!)
Reported: 2004-06-17 17:40:55 | Status: closed fixed

I was moving from RC2 to i0617 and got the following stack trace on startup of my pre-existing workspace. Eclipse *appeared* to hang. On inspecing the stack trace I saw that it was doing some error dialog so I started closing various windows I had open. Eventually I got to an error dialog saying that the workspace layout would have to be reset. I clicked OK and it the restart succeeded (though the layout was reset). !ENTRY org.eclipse.core.runtime 4 2 Jun 17, 2004 17:31:31.365 !MESSAGE Problems occurred when invoking code from plug- in: "org.eclipse.core.runtime". !STACK 0 java.lang.NullPointerException at java.lang.Throwable.<init>(Throwable.java) at java.lang.Throwable.<init>(Throwable.java) at java.lang.NullPointerException.<init>(NullPointerException.java:60) at org.eclipse.ui.internal.EditorStack.restoreState (EditorStack.java:246) at org.eclipse.ui.internal.EditorSashContainer.restoreState (EditorSashContainer.java:258) at org.eclipse.ui.internal.EditorAreaHelper.restoreState (EditorAreaHelper.java:281) at org.eclipse.ui.internal.EditorManager.restoreState (EditorManager.java:868) at org.eclipse.ui.internal.WorkbenchPage.restoreState (WorkbenchPage.java:2416) at org.eclipse.ui.internal.WorkbenchWindow.restoreState (WorkbenchWindow.java:1372) at org.eclipse.ui.internal.Workbench.restoreState(Workbench.java:1222) at org.eclipse.ui.internal.Workbench.access$10(Workbench.java:1183) at org.eclipse.ui.internal.Workbench$13.run(Workbench.java:1094) at org.eclipse.core.internal.runtime.InternalPlatform.run (InternalPlatform.java:615) at org.eclipse.core.runtime.Platform.run(Platform.java:758) at org.eclipse.ui.internal.Workbench.restoreState(Workbench.java:1027) at org.eclipse.ui.internal.WorkbenchConfigurer.restoreState (WorkbenchConfigurer.java:167) at org.eclipse.ui.application.WorkbenchAdvisor.openWindows (WorkbenchAdvisor.java:652) at org.eclipse.ui.internal.Workbench.init(Workbench.java:817) at org.eclipse.ui.internal.Workbench.runUI(Workbench.java:1323) at org.eclipse.ui.internal.Workbench.createAndRunWorkbench (Workbench.java:252) at org.eclipse.ui.PlatformUI.createAndRunWorkbench(PlatformUI.java:141) at org.eclipse.ui.internal.ide.IDEApplication.run (IDEApplication.java:96) at org.eclipse.core.internal.runtime.PlatformActivator$1.run (PlatformActivator.java:334) at org.eclipse.core.runtime.adaptor.EclipseStarter.run (EclipseStarter.java:272) at org.eclipse.core.runtime.adaptor.EclipseStarter.run (EclipseStarter.java:128) at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method) at sun.reflect.NativeMethodAccessorImpl.invoke (NativeMethodAccessorImpl.java:84) at sun.reflect.NativeMethodAccessorImpl.invoke (NativeMethodAccessorImpl.java:57) at sun.reflect.DelegatingMethodAccessorImpl.invoke (DelegatingMethodAccessorImpl.java:59) at java.lang.reflect.Method.invoke(Method.java:390) at org.eclipse.core.launcher.Main.basicRun(Main.java:186) at org.eclipse.core.launcher.Main.run(Main.java:647) at org.eclipse.core.launcher.Main.main(Main.java:631)

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