| Summary: | NPE in ContributionsAnalyzer | ||||||
|---|---|---|---|---|---|---|---|
| Product: | [Eclipse Project] e4 | Reporter: | Thomas Schindl <tom.schindl> | ||||
| Component: | UI | Assignee: | Remy Suen <remy.suen> | ||||
| Status: | VERIFIED FIXED | QA Contact: | Remy Suen <remy.suen> | ||||
| Severity: | blocker | ||||||
| Priority: | P3 | CC: | bokowski, john.arthorne, pwebster, remy.suen | ||||
| Version: | 1.0 | Flags: | pwebster:
review+
|
||||
| Target Milestone: | 1.0 RC3 | ||||||
| Hardware: | All | ||||||
| OS: | All | ||||||
| Whiteboard: | |||||||
| Attachments: |
|
||||||
|
Description
Thomas Schindl
It looks like removing the deltas.xml makes my system usable once more so probably it was a problem in not cleaning my deltas. Ok here's how to reproduce: a) Install EMF-SDK b) Open our UIElement.ecore => Peng you get NPEs everywhere until you close the editor! (In reply to comment #2) > a) Install EMF-SDK > b) Open our UIElement.ecore > > => Peng you get NPEs everywhere until you close the editor! Confirmed. Unlike Text that contributes to known menus like 'Edit' and 'Navigate', EMF seems to contribute to...I don't know what, but it's 'null' anyway. (In reply to comment #3) > EMF seems to contribute to...I don't know what, but it's 'null' > anyway. Upon investigation, EMF is spawning a completely new menu in the main menu bar named 'Sample Ecore Editor'. For referencing purposes, this regression was introduced by bug 318856. Created attachment 175132 [details]
Menu filter protection patch v1
+1 from me. This does mean that the top level menu won't show up, right? Should be added to the known issues wiki page. Paul, please review and perform a risk assessment. The gist of it here is that EMF spawns a completely new menu manager (for its 'Sample Ecore Editor') and then adds it to the top level menu manager from the window. Since that's all modeled, the window's menu manager is just some throw away MenuManager that's constructed without any parameters (such as an id) so when we try to place an MMC under it, its parent id is null. The SafeRunner is self-explanatory here. Our code is going to die elsewhere from runtime exceptions but we definitely don't want to kill SWT while we're at it. I've released this. PW Verified with I20100726-2152 on Windows XP. |