Some Eclipse Foundation services are deprecated, or will be soon. Please ensure you've read this important communication.

Bug 339504

Summary: [Wizard] NPE when init diagram from an existing model
Product: [Modeling] Papyrus Reporter: Tatiana Fesenko <tatiana.fesenko>
Component: CoreAssignee: Tatiana Fesenko <tatiana.fesenko>
Status: RESOLVED FIXED QA Contact:
Severity: normal    
Priority: P3    
Version: unspecified   
Target Milestone: ---   
Hardware: PC   
OS: All   
Whiteboard:
Bug Depends on: 315083    
Bug Blocks:    
Attachments:
Description Flags
Exception
none
Patch for 0.7.X branch rschnekenburger: iplog+

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.