Bug 965454

Summary: java.lang.NullPointerException in org.jbpm.bpmn2.xml.di.BPMNPlaneHandler.end() when missing process id.
Product: [Retired] JBoss BPMS Platform 6 Reporter: Marek Baluch <mbaluch>
Component: jBPM CoreAssignee: Kris Verlaenen <kverlaen>
Status: CLOSED CURRENTRELEASE QA Contact: Marek Baluch <mbaluch>
Severity: medium Docs Contact:
Priority: unspecified    
Version: 6.0.0CC: rzhang
Target Milestone: ---   
Target Release: 6.0.0   
Hardware: Unspecified   
OS: Unspecified   
Whiteboard:
Fixed In Version: Doc Type: Bug Fix
Doc Text:
Story Points: ---
Clone Of: Environment:
Last Closed: 2014-08-06 20:09:29 UTC Type: Bug
Regression: --- Mount Type: ---
Documentation: --- CRM:
Verified Versions: Category: ---
oVirt Team: --- RHEL 7.3 requirements from Atomic Host:
Cloudforms Team: --- Target Upstream Version:
Embargoed:
Attachments:
Description Flags
Process definition which can be used to reproduce the problem. none

Description Marek Baluch 2013-05-21 09:28:11 UTC
Created attachment 750937 [details]
Process definition which can be used to reproduce the problem.

** Description of problem:

A java.lang.NullPointerException will be thrown during parsing of the process if the definition (see attached file) contains 'xmlns:bpmndi="http://www.omg.org/spec/BPMN/20100524/DI"' elements and the process element is missing the 'id' attribute. 

** How reproducible:

File file = new File("/path/to/the/attached/process/definition");
Resource process = ResourceFactory.newFileResource(file);

KieServices ks = KieServices.Factory.get();
KieFileSystem kfs = ks.newKieFileSystem();
kfs.write(process);

KieBuilder kb = ks.newKieBuilder(kfs);
kb.buildAll();

** Actual results:

java.lang.NullPointerException on the kb.buildAll(); line.

Comment 1 Marek Baluch 2013-06-26 07:55:08 UTC
Verified on DR5 (Beta3 community)

Comment 5 Lukáš Petrovický 2014-02-07 16:15:36 UTC
This BZ has been part of the 6.0.0 stream.