Project: Eclipse_Platform_UI
Bug 328875 [UI] Registering context menus with null ids generates an NPE
Reported: 2010-10-27 14:41:26 | Status: resolved fixed

Found this during the C++ testing: Caused by: java.lang.NullPointerException at org.eclipse.ui.internal.PopupMenuExtender.createModelFor(PopupMenuExtender.java:159) at org.eclipse.ui.internal.PopupMenuExtender.<init>(PopupMenuExtender.java:150) at org.eclipse.ui.internal.PartSite.registerContextMenu(PartSite.java:124) at org.eclipse.ui.part.PageSite.registerContextMenu(PageSite.java:216) at org.eclipse.cdt.internal.ui.buildconsole.BuildConsolePage.createControl(BuildConsolePage.java:239) at org.eclipse.ui.internal.console.ConsoleView.doCreatePage(ConsoleView.java:318) at org.eclipse.ui.part.PageBookView.createPage(PageBookView.java:411) at org.eclipse.ui.part.PageBookView.partActivated(PageBookView.java:754) at org.eclipse.ui.internal.console.ConsoleView.display(ConsoleView.java:513) at org.eclipse.cdt.internal.ui.buildconsole.BuildConsoleManager.showConsole(BuildConsoleManager.java:176) at org.eclipse.cdt.internal.ui.buildconsole.BuildConsolePartitioner.warnOfContentChange(BuildConsolePartitioner.java:394) at org.eclipse.cdt.internal.ui.buildconsole.BuildConsolePartitioner$1.run(BuildConsolePartitioner.java:282)

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