Some Eclipse Foundation services are deprecated, or will be soon. Please ensure you've read this important communication.
Bug 362977 - NullPointerExceptions changing to or from Model Explorer
Summary: NullPointerExceptions changing to or from Model Explorer
Status: CLOSED WORKSFORME
Alias: None
Product: Papyrus
Classification: Modeling
Component: Core (show other bugs)
Version: unspecified   Edit
Hardware: PC Linux
: P3 normal (vote)
Target Milestone: ---   Edit
Assignee: Project Inbox CLA
QA Contact:
URL:
Whiteboard:
Keywords:
Depends on:
Blocks:
 
Reported: 2011-11-05 23:48 EDT by Allan Jacobs CLA
Modified: 2013-03-13 14:01 EDT (History)
0 users

See Also:


Attachments

Note You need to log in before you can comment on or make changes to this bug.
Description Allan Jacobs CLA 2011-11-05 23:48:03 EDT
Build Identifier: M20110909-1335

Changing from Project Explorer to Model Explorer or from Model Explorer to Project Explorer causes a NullPointerException to be thrown if the context is not perfect.

Papyrus plug-in version 0.8.1.v201109161.

Reproducible: Always

Steps to Reproduce:
1.  File New > Papyrus Project
2.  Project Name: NPEPapyrus
3.  Use default location
4.  Finish
5.  Project Explorer: Open NPEPapyrus
6.  Project Explorer: Open NPEPapyrus > model
7.  Close model.di in the editor.
8.  Project Explorer: Focus to di.  Right click.  Open with Papyrus Editor Core.
9.  Click on Model Explorer tab.  This will work fine.
10. Project Explorer: Focus to di.  Right click.  Open with Text Editor.
11. Click on Model Explorer tab.  Click on Project Explorer tab.
    NullPointer exception dialog will appear and have to be dismissed.
12. Project Explorer: Focus to di.  Right click.  Open with Text Editor.
    NullPointer exception dialog will appear and have to be dismissed.
13. Project Explorer: Focus to model (single click).
14. Click on Model Explorer tab.  Click on Project Explorer tab.
    NullPointer exception dialog will appear and have to be dismissed.
Comment 1 Arnaud Cuccuru CLA 2013-03-13 14:01:05 EDT
Not able to reproduce the bug under Kepler M5