Bug 1073993

Summary: Incorrect NULL handling in org.jbpm.services.task.impl.model.xml.JaxbOrganizationalEntity
Product: [Retired] JBoss BPMS Platform 6 Reporter: Adam Baxter <abaxter>
Component: jBPM CoreAssignee: Marco Rietveld <mrietvel>
Status: CLOSED CURRENTRELEASE QA Contact: Ivo Bek <ibek>
Severity: low Docs Contact:
Priority: medium    
Version: 6.0.1CC: smcgowan
Target Milestone: ER1   
Target Release: 6.0.2   
Hardware: All   
OS: All   
Whiteboard:
Fixed In Version: Doc Type: Bug Fix
Doc Text:
Story Points: ---
Clone Of: Environment:
Last Closed: 2014-08-06 19:51:10 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:

Description Adam Baxter 2014-03-07 15:52:46 UTC
Description of problem:

Ran across this while doing some code updates. Both convertListFromInterfaceToJaxbImpl and convertListFromJaxbImplToInterface fail to check for null parameter prior to creating the replacement list.

Example:
https://github.com/droolsjbpm/jbpm/blob/87cdf298d9f51173503d12c3ada4f0af8349d766/jbpm-human-task/jbpm-human-task-core/src/main/java/org/jbpm/services/task/impl/model/xml/JaxbOrganizationalEntity.java#L94

new ArrayList<OrganizationalEntity>(jaxbList.size()); will fail if jaxbList is null.

Version-Release number of selected component (if applicable):
6.0.1 and above

Comment 2 Marco Rietveld 2014-04-09 13:33:36 UTC
Fixed. Commits: 

6.0.x: 
https://github.com/droolsjbpm/jbpm/commit/f2574781

master; 
https://github.com/droolsjbpm/jbpm/commit/d446a20b

Comment 3 Ivo Bek 2014-05-05 11:35:38 UTC
Verified in BPMS 6.0.2.ER2