Bug 531793 - NPE with tabbar contribution including createSelectMenuManager()
Summary: NPE with tabbar contribution including createSelectMenuManager()
Status: NEW
Alias: None
Product: Sirius
Classification: Modeling
Component: Diagram (show other bugs)
Version: 5.1.0   Edit
Hardware: All All
: P3 normal (vote)
Target Milestone: ---   Edit
Assignee: Project Inbox CLA
QA Contact:
URL:
Whiteboard:
Keywords: triaged
Depends on:
Blocks:
 
Reported: 2018-02-28 08:13 EST by Steve Monnier CLA
Modified: 2018-03-06 11:54 EST (History)
1 user (show)

See Also:


Attachments
tabbar_extension_531793 (11.47 KB, application/x-zip-compressed)
2018-02-28 08:14 EST, Steve Monnier CLA
no flags Details

Note You need to log in before you can comment on or make changes to this bug.
Description Steve Monnier CLA 2018-02-28 08:13:22 EST
It is possible to customize the tabbar of diagram using the org.eclipse.sirius.diagram.ui.tabbarContributor. The contributor associated can extend AbstractTabbarContributor to select which default tabbar action will be available. Adding createSelectMenuManager() to the Diagram Contribution causes an NPE when a diagram element is selected and Eclipse is restarted.

Step to reproduce:
- Import the project in attachment
- Launch a runtime
- Open a diagram and select a diagram element
- Restart Eclipse (Set breakpoint on NPE)
-> It should not cause an NPE in SelectionService
Comment 1 Steve Monnier CLA 2018-02-28 08:14:16 EST
Created attachment 272935 [details]
tabbar_extension_531793
Comment 2 Steve Monnier CLA 2018-02-28 08:58:45 EST
I said that the issue happens when Eclipse is restarted, but it also happen when Eclipse is closed of course.