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

Bug 547730

Summary: IllegalArgumentException during some diagram opening without "refresh at opening"
Product: [Modeling] Sirius Reporter: Steve Monnier <steve.monnier>
Component: DiagramAssignee: Project Inbox <sirius.diagram-inbox>
Status: RESOLVED DUPLICATE QA Contact:
Severity: normal    
Priority: P3    
Version: 6.2.0   
Target Milestone: ---   
Hardware: PC   
OS: Windows 10   
Whiteboard:

Description Steve Monnier CLA 2019-05-28 05:32:34 EDT
This is the additional fix of 541555 that was not reported on the master branch.
Comment 1 Steve Monnier CLA 2019-05-28 05:33:09 EDT
We found the same issue with a different exception (IllegalStateException) with the sample in attachment 541555.zip. Note that this sample was the result of the migration to the current version of a sample where a GMF Node had a reference to a DNode that is not existing. The migration keeps the GMF Node but removes the "element" reference. On diagram opening the GMF Node name is loaded with the DRepresentation name feature because of the ViewImpl.getElement workaround.

Step to validate:
- Import the project from 541555.zip
- Open the new 541555 representation.
-> It should display a "Refresh the diagram" dialog. Press OK and the diagram should be opened with a single node.
Comment 2 Steve Monnier CLA 2019-05-28 05:40:35 EDT

*** This bug has been marked as a duplicate of bug 544580 ***
Comment 3 Steve Monnier CLA 2019-05-28 05:41:31 EDT
In fact it was reported through 544580 so I close this issue as duplicate.