Some Eclipse Foundation services are deprecated, or will be soon. Please ensure you've read this important communication.
Bug 339504 - [Wizard] NPE when init diagram from an existing model
Summary: [Wizard] NPE when init diagram from an existing model
Status: RESOLVED FIXED
Alias: None
Product: Papyrus
Classification: Modeling
Component: Core (show other bugs)
Version: unspecified   Edit
Hardware: PC All
: P3 normal (vote)
Target Milestone: ---   Edit
Assignee: Tatiana Fesenko CLA
QA Contact:
URL:
Whiteboard:
Keywords:
Depends on: 315083
Blocks:
  Show dependency tree
 
Reported: 2011-03-10 07:38 EST by Tatiana Fesenko CLA
Modified: 2012-03-28 05:15 EDT (History)
0 users

See Also:


Attachments
Exception (4.22 KB, text/plain)
2011-03-10 07:39 EST, Tatiana Fesenko CLA
no flags Details
Patch for 0.7.X branch (2.41 KB, patch)
2011-03-10 10:50 EST, Tatiana Fesenko CLA
rschnekenburger: iplog+
Details | Diff

Note You need to log in before you can comment on or make changes to this bug.
Description Tatiana Fesenko CLA 2011-03-10 07:38:47 EST
Create *.uml file
Invoke "new Papyrus Model" on it - it will init a new Papyrus diagram for the selected uml model. 
NPE occurs
Comment 1 Tatiana Fesenko CLA 2011-03-10 07:39:40 EST
Created attachment 190846 [details]
Exception
Comment 2 Tatiana Fesenko CLA 2011-03-10 07:41:35 EST
This bug is caused be 315083
Comment 3 Tatiana Fesenko CLA 2011-03-10 07:50:04 EST
Fixed in the trunk (r4239)
Comment 4 Tatiana Fesenko CLA 2011-03-10 10:50:02 EST
Created attachment 190873 [details]
Patch for 0.7.X branch
Comment 5 Tatiana Fesenko CLA 2011-03-10 10:54:12 EST
ModelSet class assumes that #createsModels()  will always be invoked, this is where filenameWithoutExtension variable is initialized. But the method creates or overrides all (three) files, while we want to keep .uml file as is. This yields filenameWithoutExtension to be null and then NPE.