Some Eclipse Foundation services are deprecated, or will be soon. Please ensure you've read this important communication.
Bug 328875 - [UI] Registering context menus with null ids generates an NPE
Summary: [UI] Registering context menus with null ids generates an NPE
Status: RESOLVED FIXED
Alias: None
Product: e4
Classification: Eclipse Project
Component: UI (show other bugs)
Version: unspecified   Edit
Hardware: PC Windows XP
: P3 normal (vote)
Target Milestone: 4.1 M3   Edit
Assignee: Paul Webster CLA
QA Contact:
URL:
Whiteboard:
Keywords:
Depends on:
Blocks:
 
Reported: 2010-10-27 14:41 EDT by Eric Moffatt CLA
Modified: 2010-10-27 14:47 EDT (History)
1 user (show)

See Also:


Attachments
Fix NPE v01 (890 bytes, patch)
2010-10-27 14:46 EDT, Paul Webster CLA
no flags Details | Diff

Note You need to log in before you can comment on or make changes to this bug.
Description Eric Moffatt CLA 2010-10-27 14:41:26 EDT
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)
Comment 1 Paul Webster CLA 2010-10-27 14:46:17 EDT
Created attachment 181864 [details]
Fix NPE v01
Comment 2 Paul Webster CLA 2010-10-27 14:47:03 EDT
Released to HEAD
PW