Project: Eclipse_Platform_UI
Bug 7117 NPE in PageBookView restarting workbench
Reported: 2001-12-19 15:29:05 | Status: resolved fixed

20011218 1. Open the workbench and open a .java file 2. Select something in the outline 3. Close the workbench 4. Reopen the workbench 5. The editor will not be created From the log Log: Wed Dec 19 15:34:30 EST 2001 2 org.eclipse.ui 2 Problems occurred when invoking code from plug-in: org.eclipse.ui. java.lang.NullPointerException at org.eclipse.ui.part.PageBookView$SelectionProvider.getSelection (PageBookView.java:199) at org.eclipse.jdt.internal.debug.ui.display.EvaluateAction.getExpressionText (EvaluateAction.java:248) at org.eclipse.jdt.internal.debug.ui.display.EvaluateAction.update (EvaluateAction.java:227) at org.eclipse.jdt.internal.debug.ui.display.EvaluateAction.setActiveEditor (EvaluateAction.java:538) at org.eclipse.ui.internal.EditorPluginAction.initDelegate (EditorPluginAction.java:34) at org.eclipse.ui.internal.PluginAction.createDelegate (PluginAction.java:84) at org.eclipse.ui.internal.PluginAction.selectionChanged (PluginAction.java:211) at org.eclipse.ui.internal.PluginAction.<init>(PluginAction.java:73) at org.eclipse.ui.internal.PartPluginAction.<init> (PartPluginAction.java:23) at org.eclipse.ui.internal.EditorPluginAction.<init> (EditorPluginAction.java:20) at org.eclipse.ui.internal.ActionDescriptor.createAction (ActionDescriptor.java:150) at org.eclipse.ui.internal.ActionDescriptor.<init> (ActionDescriptor.java:111) at org.eclipse.ui.internal.ViewerActionBuilder.createActionDescriptor (ViewerActionBuilder.java:33) at org.eclipse.ui.internal.PluginActionBuilder.readElement (PluginActionBuilder.java:295) at org.eclipse.ui.internal.registry.RegistryReader.readElements (RegistryReader.java:119) at org.eclipse.ui.internal.registry.RegistryReader.readElementChildren (RegistryReader.java:109) at org.eclipse.ui.internal.PluginActionBuilder.readElement (PluginActionBuilder.java:301) at org.eclipse.ui.internal.registry.RegistryReader.readElements (RegistryReader.java:119) at org.eclipse.ui.internal.registry.RegistryReader.readExtension (RegistryReader.java:128) at org.eclipse.ui.internal.registry.RegistryReader.readRegistry (RegistryReader.java:140) at org.eclipse.ui.internal.PluginActionBuilder.readContributions (PluginActionBuilder.java:268) at org.eclipse.ui.internal.ViewerActionBuilder.readViewerContributions (ViewerActionBuilder.java:53) at org.eclipse.ui.internal.PopupMenuExtender.readStaticActions (PopupMenuExtender.java:76) at org.eclipse.ui.internal.PopupMenuExtender.<init> (PopupMenuExtender.java:39) at org.eclipse.ui.internal.PartSite.registerContextMenu (PartSite.java:151) at org.eclipse.ui.texteditor.AbstractTextEditor.createPartControl (AbstractTextEditor.java:945) at org.eclipse.jdt.internal.ui.javaeditor.CompilationUnitEditor.createPartControl (CompilationUnitEditor.java:953) at org.eclipse.ui.internal.PartPane$2.run(PartPane.java:60) at org.eclipse.core.internal.runtime.InternalPlatform.run (InternalPlatform.java:821) at org.eclipse.core.runtime.Platform.run(Platform.java:395) at org.eclipse.ui.internal.PartPane.createChildControl(PartPane.java:58) at org.eclipse.ui.internal.PartPane.createControl(PartPane.java:100) at org.eclipse.ui.internal.EditorWorkbook.createPage (EditorWorkbook.java:214) at org.eclipse.ui.internal.EditorWorkbook.createControl (EditorWorkbook.java:179) at org.eclipse.ui.internal.PartSashContainer.createControl (PartSashContainer.java:172) at org.eclipse.ui.internal.PartSashContainer.createControl (PartSashContainer.java:172) at org.eclipse.ui.internal.PerspectivePresentation.activate (PerspectivePresentation.java:80) at org.eclipse.ui.internal.Perspective.onActivate(Perspective.java:509) at org.eclipse.ui.internal.WorkbenchPage.onActivate (WorkbenchPage.java:1021) at org.eclipse.ui.internal.WorkbenchWindow$5.run (WorkbenchWindow.java:869) at org.eclipse.swt.custom.BusyIndicator.showWhile(BusyIndicator.java:56) at org.eclipse.ui.internal.WorkbenchWindow.setActivePage (WorkbenchWindow.java:857) at org.eclipse.ui.internal.WorkbenchWindow.restoreState (WorkbenchWindow.java:770) at org.eclipse.ui.internal.Workbench.restoreState(Workbench.java:774) at org.eclipse.ui.internal.Workbench$5.run(Workbench.java:542) at org.eclipse.core.internal.runtime.InternalPlatform.run (InternalPlatform.java:821) at org.eclipse.core.runtime.Platform.run(Platform.java:395) at org.eclipse.ui.internal.Workbench.openPreviousWorkbenchState (Workbench.java:526) at org.eclipse.ui.internal.Workbench.openWindows(Workbench.java:583) at org.eclipse.ui.internal.Workbench.init(Workbench.java:426) at org.eclipse.ui.internal.Workbench.run(Workbench.java:794) at org.eclipse.core.internal.boot.InternalBootLoader.run (InternalBootLoader.java:821) at org.eclipse.core.boot.BootLoader.run(BootLoader.java:285) at java.lang.reflect.Method.invoke(Native Method) at org.eclipse.core.launcher.Main.basicRun(Main.java:151) at org.eclipse.core.launcher.Main.run(Main.java:502) at org.eclipse.core.launcher.Main.main(Main.java:362)

Files changed in fix:
bundles/org.eclipse.ui/Eclipse UI/org/eclipse/ui/part/PageBookView.java