Project: Eclipse_Platform_UI
Bug 80406 [DynamicUI] NPE trying to open GIF file
Reported: 2004-12-07 14:24:27 | Status: verified fixed

Build: I20041207-0800 I double clicked on a GIF file in the package explorer and received this exception: org.eclipse.core.runtime.CoreException[4]: java.lang.NullPointerException at org.eclipse.ui.internal.WorkbenchPlugin.createExtension (WorkbenchPlugin.java:198) at org.eclipse.ui.internal.EditorManager$5.run(EditorManager.java:909) at org.eclipse.core.internal.runtime.InternalPlatform.run (InternalPlatform.java:1044) at org.eclipse.core.runtime.Platform.run(Platform.java:747) at org.eclipse.ui.internal.EditorManager.createPart(EditorManager.java:907) at org.eclipse.ui.internal.EditorManager.openInternalEditor (EditorManager.java:893) at org.eclipse.ui.internal.EditorManager.openEditorFromDescriptor (EditorManager.java:651) at org.eclipse.ui.internal.EditorManager.openEditor(EditorManager.java:637) at org.eclipse.ui.internal.WorkbenchPage.busyOpenEditorBatched (WorkbenchPage.java:2283) at org.eclipse.ui.internal.WorkbenchPage.busyOpenEditor (WorkbenchPage.java:2215) at org.eclipse.ui.internal.WorkbenchPage.access$6(WorkbenchPage.java:2207) at org.eclipse.ui.internal.WorkbenchPage$9.run(WorkbenchPage.java:2193) at org.eclipse.swt.custom.BusyIndicator.showWhile(BusyIndicator.java:69) at org.eclipse.ui.internal.WorkbenchPage.openEditor(WorkbenchPage.java:2188) at org.eclipse.ui.ide.IDE.openEditor(IDE.java:299) at org.eclipse.jdt.internal.ui.javaeditor.EditorUtility.openInEditor (EditorUtility.java:172) at org.eclipse.jdt.internal.ui.javaeditor.EditorUtility.openInEditor (EditorUtility.java:114) at org.eclipse.jdt.internal.ui.actions.OpenActionUtil.open (OpenActionUtil.java:49) at org.eclipse.jdt.ui.actions.OpenAction.run(OpenAction.java:164) at org.eclipse.jdt.ui.actions.OpenAction.run(OpenAction.java:150) at org.eclipse.jdt.ui.actions.SelectionDispatchAction.dispatchRun (SelectionDispatchAction.java:212) at org.eclipse.jdt.ui.actions.SelectionDispatchAction.run (SelectionDispatchAction.java:188) at org.eclipse.jdt.internal.ui.packageview.PackageExplorerActionGroup.handleOpen (PackageExplorerActionGroup.java:292) at org.eclipse.jdt.internal.ui.packageview.PackageExplorerPart$4.open (PackageExplorerPart.java:678) at org.eclipse.jface.viewers.StructuredViewer$2.run(StructuredViewer.java:659) at org.eclipse.core.internal.runtime.InternalPlatform.run (InternalPlatform.java:1044) at org.eclipse.core.runtime.Platform.run(Platform.java:747) at org.eclipse.jface.viewers.StructuredViewer.fireOpen (StructuredViewer.java:657) at org.eclipse.jface.viewers.StructuredViewer.handleOpen (StructuredViewer.java:876) at org.eclipse.jface.viewers.StructuredViewer$6.handleOpen (StructuredViewer.java:975) at org.eclipse.jface.util.OpenStrategy.fireOpenEvent(OpenStrategy.java:243) at org.eclipse.jface.util.OpenStrategy.access$2(OpenStrategy.java:238) at org.eclipse.jface.util.OpenStrategy$1.handleEvent(OpenStrategy.java:277) at org.eclipse.swt.widgets.EventTable.sendEvent(EventTable.java:82) at org.eclipse.swt.widgets.Widget.sendEvent(Widget.java:814) at org.eclipse.swt.widgets.Display.runDeferredEvents(Display.java:2803) at org.eclipse.swt.widgets.Display.readAndDispatch(Display.java:2448) at org.eclipse.ui.internal.Workbench.runEventLoop(Workbench.java:1578) at org.eclipse.ui.internal.Workbench.runUI(Workbench.java:1549) at org.eclipse.ui.internal.Workbench.createAndRunWorkbench(Workbench.java:281) at org.eclipse.ui.PlatformUI.createAndRunWorkbench(PlatformUI.java:144) at org.eclipse.ui.internal.ide.IDEApplication.run(IDEApplication.java:102) at org.eclipse.core.internal.runtime.PlatformActivator$1.run (PlatformActivator.java:220) at org.eclipse.core.runtime.adaptor.EclipseStarter.run(EclipseStarter.java:273) at org.eclipse.core.runtime.adaptor.EclipseStarter.run(EclipseStarter.java:129) at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method) at sun.reflect.NativeMethodAccessorImpl.invoke (NativeMethodAccessorImpl.java:85) at sun.reflect.NativeMethodAccessorImpl.invoke (NativeMethodAccessorImpl.java:58) at sun.reflect.DelegatingMethodAccessorImpl.invoke (DelegatingMethodAccessorImpl.java:60) at java.lang.reflect.Method.invoke(Method.java:391) at org.eclipse.core.launcher.Main.basicRun(Main.java:185) at org.eclipse.core.launcher.Main.run(Main.java:684) at org.eclipse.core.launcher.Main.main(Main.java:668)

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