Project: Eclipse_Platform_UI
Bug 128287 [Contributions] being 'relativeTo' a non-existent group throws NPE
Reported: 2006-02-16 15:19:53 | Status: verified fixed

If I define a new group (using the org.eclipse.ui.menus extension point) and make it 'relativeTo' some other group that has not been defined then the SOrder handling throws an NPE. The result is that if this project is in the workspace then you can't run an 'inner'. To repro: Create a new Plug-in project. Add the following XML to the plugin.xml <extension point="org.eclipse.ui.menus"> <group id="heapStatus" separatorsVisible="true"> <location> <order position="after" relativeTo="status"/> </location> </group> <widget id="TestProj.widget1"> <layout fillMajor="false" fillMinor="true"/> <location> <bar path="heapStatus" type="trim"/> </location> </widget> </extension> Run an inner (best if you set an NPE breakpoint first; otherwise all you see is the splash screen coming up and silently going away again...).

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