Project: Eclipse_Platform_UI
Bug 46281 [Editor Mgmt] NPE in EditorDescriptor.loadValues
Reported: 2003-11-07 11:35:54 | Status: resolved fixed

build N20031107 - try to open any editor - it fails with: !ENTRY org.eclipse.jface 4 2 Nov 07, 2003 11:24:08.787 !MESSAGE Problems occurred when invoking code from plug-in: "org.eclipse.jface". !STACK 0 java.lang.NullPointerException at org.eclipse.ui.internal.registry.EditorDescriptor.loadValues (EditorDescriptor.java:250) at org.eclipse.ui.internal.registry.EditorRegistry.loadAssociations (EditorRegistry.java:492) at org.eclipse.ui.internal.registry.EditorRegistry.initializeFromStorage (EditorRegistry.java:424) at org.eclipse.ui.internal.registry.EditorRegistry.<init> (EditorRegistry.java:75) at org.eclipse.ui.internal.WorkbenchPlugin.getEditorRegistry (WorkbenchPlugin.java:203) at org.eclipse.ui.internal.Workbench.getEditorRegistry (Workbench.java:611) at org.eclipse.ui.internal.ide.model.WorkbenchFile.getBaseImage (WorkbenchFile.java:28) at org.eclipse.ui.internal.ide.model.WorkbenchResource.getImageDescriptor (WorkbenchResource.java:36) at org.eclipse.ui.model.WorkbenchLabelProvider.getImage (WorkbenchLabelProvider.java:115) at org.eclipse.team.ui.synchronize.TeamSubscriberParticipantLabelProvider.getImage (TeamSubscriberParticipantLabelProvider.java:132) at org.eclipse.jface.viewers.TreeViewer.doUpdateItem(TreeViewer.java:99) at org.eclipse.jface.viewers.AbstractTreeViewer$UpdateItemSafeRunnable.run (AbstractTreeViewer.java:87) at org.eclipse.core.internal.runtime.InternalPlatform.run (InternalPlatform.java:1123) at org.eclipse.core.runtime.Platform.run(Platform.java:461) at org.eclipse.jface.viewers.AbstractTreeViewer.doUpdateItem (AbstractTreeViewer.java:469) at org.eclipse.jface.viewers.StructuredViewer$UpdateItemSafeRunnable.run (StructuredViewer.java:119) at org.eclipse.core.internal.runtime.InternalPlatform.run (InternalPlatform.java:1123) at org.eclipse.core.runtime.Platform.run(Platform.java:461) at org.eclipse.jface.viewers.StructuredViewer.updateItem (StructuredViewer.java:1285) at org.eclipse.jface.viewers.AbstractTreeViewer.createTreeItem (AbstractTreeViewer.java:383) at org.eclipse.jface.viewers.AbstractTreeViewer$1.run (AbstractTreeViewer.java:363) at org.eclipse.swt.custom.BusyIndicator.showWhile(BusyIndicator.java:84) at org.eclipse.jface.viewers.AbstractTreeViewer.createChildren (AbstractTreeViewer.java:349) at org.eclipse.jface.viewers.AbstractTreeViewer.handleTreeExpand (AbstractTreeViewer.java:775) at org.eclipse.jface.viewers.AbstractTreeViewer$4.treeExpanded (AbstractTreeViewer.java:786) at org.eclipse.swt.widgets.TypedListener.handleEvent (TypedListener.java:179) at org.eclipse.swt.widgets.EventTable.sendEvent(EventTable.java:82) at org.eclipse.swt.widgets.Widget.sendEvent(Widget.java:847) at org.eclipse.swt.widgets.Widget.sendEvent(Widget.java:871) at org.eclipse.swt.widgets.Widget.sendEvent(Widget.java:856) at org.eclipse.swt.widgets.Tree.wmNotifyChild(Tree.java:1953) at org.eclipse.swt.widgets.Control.WM_NOTIFY(Control.java:3968) at org.eclipse.swt.widgets.Composite.WM_NOTIFY(Composite.java:714) at org.eclipse.swt.widgets.Control.windowProc(Control.java:2969) at org.eclipse.swt.widgets.Display.windowProc(Display.java:2712) at org.eclipse.swt.internal.win32.OS.CallWindowProcW(Native Method) at org.eclipse.swt.internal.win32.OS.CallWindowProc(OS.java:1279) at org.eclipse.swt.widgets.Tree.callWindowProc(Tree.java:156) at org.eclipse.swt.widgets.Tree.WM_LBUTTONDOWN(Tree.java:1562) at org.eclipse.swt.widgets.Control.windowProc(Control.java:2951) at org.eclipse.swt.widgets.Display.windowProc(Display.java:2712) at org.eclipse.swt.internal.win32.OS.DispatchMessageW(Native Method) at org.eclipse.swt.internal.win32.OS.DispatchMessage(OS.java:1355) at org.eclipse.swt.widgets.Display.readAndDispatch(Display.java:1875) at org.eclipse.ui.internal.Workbench.runEventLoop(Workbench.java:1416) at org.eclipse.ui.internal.Workbench.runUI(Workbench.java:1392) at org.eclipse.ui.internal.Workbench.createAndRunWorkbench (Workbench.java:235) at org.eclipse.ui.PlatformUI.createAndRunWorkbench(PlatformUI.java:121) at org.eclipse.ui.internal.ide.IDEApplication.run (IDEApplication.java:50) at org.eclipse.core.internal.boot.InternalBootLoader.run (InternalBootLoader.java:858) at org.eclipse.core.boot.BootLoader.run(BootLoader.java:461) at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method) at sun.reflect.NativeMethodAccessorImpl.invoke (NativeMethodAccessorImpl.java:39) at sun.reflect.DelegatingMethodAccessorImpl.invoke (DelegatingMethodAccessorImpl.java:25) at java.lang.reflect.Method.invoke(Method.java:324) at org.eclipse.core.launcher.Main.basicRun(Main.java:299) at org.eclipse.core.launcher.Main.run(Main.java:767) at org.eclipse.core.launcher.Main.main(Main.java:601)

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