Project: Eclipse_Platform_UI
Bug 52405 NullPointerException in findAlphabeticalOrder
Reported: 2004-02-18 14:30:58 | Status: resolved fixed

Looks similar to the problem reported in 49788. I will attach a patch. The problem is that some items in this method may have null ids. We need to check for this case. java.lang.NullPointerException at org.eclipse.ui.internal.ActionSetActionBars.findAlphabeticalOrder (ActionSetActionBars.java:136) at org.eclipse.ui.internal.ActionSetActionBars.getToolBarManager (ActionSetActionBars.java:228) at org.eclipse.ui.internal.PluginActionSetBuilder$ActionSetContribution.contributeC oolbarAction(PluginActionSetBuilder.java:356) at org.eclipse.ui.internal.PluginActionSetBuilder$ActionSetContribution.contribute (PluginActionSetBuilder.java:278) at org.eclipse.ui.internal.PluginActionSetBuilder.readActionExtensions (PluginActionSetBuilder.java:219) at org.eclipse.ui.internal.PluginActionSetBuilder.processActionSets (PluginActionSetBuilder.java:180) at org.eclipse.ui.internal.ActionPresentation.setActionSets (ActionPresentation.java:155) at org.eclipse.ui.internal.WorkbenchWindow.updateActionSets (WorkbenchWindow.java:1849) at org.eclipse.ui.internal.WorkbenchWindow$6.run (WorkbenchWindow.java:1661) at org.eclipse.swt.custom.BusyIndicator.showWhile(BusyIndicator.java:84) at org.eclipse.ui.internal.WorkbenchWindow.setActivePage (WorkbenchWindow.java:1636) at org.eclipse.ui.internal.WorkbenchWindow.busyOpenPage (WorkbenchWindow.java:411) at org.eclipse.ui.internal.WorkbenchWindow$5.run (WorkbenchWindow.java:943) at org.eclipse.swt.custom.BusyIndicator.showWhile(BusyIndicator.java:84) at org.eclipse.ui.internal.WorkbenchWindow.openPage (WorkbenchWindow.java:940) at org.eclipse.ui.internal.Workbench.openFirstTimeWindow (Workbench.java:1179) at org.eclipse.ui.internal.Workbench.init(Workbench.java:892) at org.eclipse.ui.internal.Workbench.runUI(Workbench.java:1496) at org.eclipse.ui.internal.Workbench.createAndRunWorkbench (Workbench.java:258) at org.eclipse.ui.PlatformUI.createAndRunWorkbench(PlatformUI.java:139) at org.eclipse.ui.examples.rcp.browser.BrowserApp.run (BrowserApp.java:51) at org.eclipse.core.internal.runtime.PlatformActivator$1.run (PlatformActivator.java:257) at org.eclipse.core.runtime.adaptor.EclipseStarter.run (EclipseStarter.java:104) 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:279) at org.eclipse.core.launcher.Main.run(Main.java:742) at org.eclipse.core.launcher.Main.main(Main.java:581)

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