Project: Eclipse_Platform_UI
Bug 21781 NPE restarting after disabling feature (EditorManager.findImage)
Reported: 2002-07-22 15:39:42 | Status: resolved fixed

Build 20020717 nightly - installed SDK examples using update manager - opened resource perspective with readme action set - created new readme file, which opened editor - disabled SDK examples using update manager - on restart, got an error and it offered to toss my workbench layout Log has: !SESSION Jul 22, 2002 15:46:30.451 -------------------------------------------- - 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:/eclipse20020717-nightly/eclipse/ !ENTRY org.eclipse.ui 4 2 Jul 22, 2002 15:46:30.451 !MESSAGE Problems occurred when invoking code from plug-in: "org.eclipse.ui". !STACK 0 java.lang.NullPointerException at org.eclipse.ui.internal.EditorManager.findImage (EditorManager.java:648) at org.eclipse.ui.internal.EditorManager.restoreState (EditorManager.java:718) at org.eclipse.ui.internal.WorkbenchPage.restoreState (WorkbenchPage.java:1855) at org.eclipse.ui.internal.WorkbenchPage.<init>(WorkbenchPage.java:306) at org.eclipse.ui.internal.WorkbenchWindow.restoreState (WorkbenchWindow.java:1054) 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:831) 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:775) 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:698) at org.eclipse.core.launcher.Main.main(Main.java:534)

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