Project: Eclipse_Platform_UI
Bug 61450 [EditorMgmt] NPE opening editor if editor icon file location incorrect...
Reported: 2004-05-07 16:28:04 | Status: closed fixed

Using integration build 20040428 Create an editor entry in your plugin.xml file. Make sure all is specified correctly, except for the icon attribute, specify an icon filename that does not exist in your plugin. Launch a workbench and open the editor. You will get the following error: java.lang.NullPointerException at java.lang.Throwable.<init>(Throwable.java) at java.lang.Throwable.<init>(Throwable.java:73) at java.lang.NullPointerException.<init>(NullPointerException.java:60) at org.eclipse.ui.part.WorkbenchPart.setInitializationData (WorkbenchPart.java:229) at org.eclipse.core.internal.registry.ConfigurationElement.createExecutableExtensi on(ConfigurationElement.java:146) at org.eclipse.core.internal.registry.ConfigurationElement.createExecutableExtensi on(ConfigurationElement.java:122) at org.eclipse.core.internal.registry.ConfigurationElement.createExecutableExtensi on(ConfigurationElement.java:111) at org.eclipse.ui.internal.WorkbenchPlugin.createExtension (WorkbenchPlugin.java:189) at org.eclipse.ui.internal.EditorManager$3.run(EditorManager.java:643) at org.eclipse.core.internal.runtime.InternalPlatform.run (InternalPlatform.java:599) at org.eclipse.core.runtime.Platform.run(Platform.java:543) at org.eclipse.ui.internal.EditorManager.createPart (EditorManager.java:641) at org.eclipse.ui.internal.EditorManager.openInternalEditor (EditorManager.java:628) at org.eclipse.ui.internal.EditorManager.openEditorFromDescriptor (EditorManager.java:438) at org.eclipse.ui.internal.EditorManager.openEditor (EditorManager.java:426) at org.eclipse.ui.internal.WorkbenchPage.busyOpenEditor (WorkbenchPage.java:2129) at org.eclipse.ui.internal.WorkbenchPage.access$6 (WorkbenchPage.java:2072) at org.eclipse.ui.internal.WorkbenchPage$9.run(WorkbenchPage.java:2059) at org.eclipse.swt.custom.BusyIndicator.showWhile (BusyIndicator.java:84) at org.eclipse.ui.internal.WorkbenchPage.openEditor (WorkbenchPage.java:2054) at org.eclipse.ui.ide.IDE.openEditor(IDE.java:265) at com.ibm.wbit.br.ui.wizard.AbstractRulesFileWizard.selectAndOpenNewFile (AbstractRulesFileWizard.java:152) at com.ibm.wbit.br.ui.wizard.AbstractRulesFileWizard.performFinish (AbstractRulesFileWizard.java:136) at org.eclipse.jface.wizard.WizardDialog.finishPressed (WizardDialog.java:613) at org.eclipse.jface.wizard.WizardDialog.buttonPressed (WizardDialog.java:330) at org.eclipse.jface.dialogs.Dialog$1.widgetSelected(Dialog.java:448) at org.eclipse.swt.widgets.TypedListener.handleEvent (TypedListener.java:89) at org.eclipse.swt.widgets.EventTable.sendEvent(EventTable.java) at org.eclipse.swt.widgets.Widget.sendEvent(Widget.java:796) at org.eclipse.swt.widgets.Display.runDeferredEvents(Display.java) at org.eclipse.swt.widgets.Display.readAndDispatch(Display.java) at org.eclipse.jface.window.Window.runEventLoop(Window.java:668) at org.eclipse.jface.window.Window.open(Window.java:648) at org.eclipse.ui.actions.NewWizardAction.run(NewWizardAction.java:161) at org.eclipse.jface.action.Action.runWithEvent(Action.java:881) at org.eclipse.ui.commands.ActionHandler.execute (ActionHandler.java:123) at org.eclipse.ui.internal.commands.Command.execute(Command.java:127) at org.eclipse.ui.internal.keys.WorkbenchKeyboard.executeCommand (WorkbenchKeyboard.java:468) at org.eclipse.ui.internal.keys.WorkbenchKeyboard.press (WorkbenchKeyboard.java:886) at org.eclipse.ui.internal.keys.WorkbenchKeyboard.processKeyEvent (WorkbenchKeyboard.java:927) at org.eclipse.ui.internal.keys.WorkbenchKeyboard.filterKeySequenceBindings (WorkbenchKeyboard.java:545) at org.eclipse.ui.internal.keys.WorkbenchKeyboard.access$2 (WorkbenchKeyboard.java:493) at org.eclipse.ui.internal.keys.WorkbenchKeyboard$1.handleEvent (WorkbenchKeyboard.java:258) at org.eclipse.swt.widgets.EventTable.sendEvent(EventTable.java) at org.eclipse.swt.widgets.Display.filterEvent(Display.java:705) at org.eclipse.swt.widgets.Widget.sendEvent(Widget.java:795) at org.eclipse.swt.widgets.Widget.sendEvent(Widget.java:820) at org.eclipse.swt.widgets.Widget.sendEvent(Widget.java:805) at org.eclipse.swt.widgets.Control.sendKeyEvent(Control.java:1724) at org.eclipse.swt.widgets.Control.sendKeyEvent(Control.java:1720) at org.eclipse.swt.widgets.Control.WM_CHAR(Control.java:3049) at org.eclipse.swt.widgets.Tree.WM_CHAR(Tree.java:1292) at org.eclipse.swt.widgets.Control.windowProc(Control.java) at org.eclipse.swt.widgets.Display.windowProc(Display.java) at org.eclipse.swt.internal.win32.OS.DispatchMessageW(Native Method) at org.eclipse.swt.internal.win32.OS.DispatchMessage(OS.java) at org.eclipse.swt.widgets.Display.readAndDispatch(Display.java) at org.eclipse.ui.internal.Workbench.runEventLoop(Workbench.java:1353) at org.eclipse.ui.internal.Workbench.runUI(Workbench.java:1324) at org.eclipse.ui.internal.Workbench.createAndRunWorkbench (Workbench.java:240) at org.eclipse.ui.PlatformUI.createAndRunWorkbench(PlatformUI.java:140) at org.eclipse.ui.internal.ide.IDEApplication.run (IDEApplication.java:90) at org.eclipse.core.internal.runtime.PlatformActivator$1.run (PlatformActivator.java:283) at org.eclipse.core.runtime.adaptor.EclipseStarter.run (EclipseStarter.java:240) at org.eclipse.core.runtime.adaptor.EclipseStarter.run (EclipseStarter.java:117) at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method) at sun.reflect.NativeMethodAccessorImpl.invoke (NativeMethodAccessorImpl.java:79) at sun.reflect.DelegatingMethodAccessorImpl.invoke (DelegatingMethodAccessorImpl.java:41) at java.lang.reflect.Method.invoke(Method.java:386) at org.eclipse.core.launcher.Main.basicRun(Main.java:269) at org.eclipse.core.launcher.Main.run(Main.java:700) at org.eclipse.core.launcher.Main.main(Main.java:684)

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