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

Bug 368973

Summary: Unexpected DI order produces NPE during import
Product: [SOA] BPMN2Modeler Reporter: Andreas Drobisch <eclipse>
Component: UIAssignee: Robert Brodt <bbrodt>
Status: RESOLVED FIXED QA Contact:
Severity: major    
Priority: P3 Flags: bbrodt: iplog+
Version: future   
Target Milestone: 0.0.1-M1   
Hardware: PC   
OS: Windows 7   
Whiteboard:
Attachments:
Description Flags
Model in error none

Description Andreas Drobisch CLA 2012-01-18 09:40:46 EST
Created attachment 209679 [details]
Model in error

When importing a BPMN model which includes boundary events, the DI info for the event might be parsed before the DI info of the bpmn element it is attached to.

(see the attached model)

The Graphiti container is not existing for this parent element which will cause an NPE during the position calculation / layouting of the boundary event.

I fixed this by using a queue for the import process, to postpone the boundary event shape creation to an point where the the parent shape must have been created:

https://bitbucket.org/adrobisch/fix.eclipse.bpmn2-modeler/changeset/47dd6436f125

It would be great to see this fix, or an equivalent in the master.
Comment 1 Robert Brodt CLA 2012-01-26 10:17:19 EST
Patch applied. Thanks Andreas!