Bug 1073993 - Incorrect NULL handling in org.jbpm.services.task.impl.model.xml.JaxbOrganizationalEntity
Summary: Incorrect NULL handling in org.jbpm.services.task.impl.model.xml.JaxbOrganiza...
Keywords:
Status: CLOSED CURRENTRELEASE
Alias: None
Product: JBoss BPMS Platform 6
Classification: Retired
Component: jBPM Core
Version: 6.0.1
Hardware: All
OS: All
medium
low
Target Milestone: ER1
: 6.0.2
Assignee: Marco Rietveld
QA Contact: Ivo Bek
URL:
Whiteboard:
Depends On:
Blocks:
TreeView+ depends on / blocked
 
Reported: 2014-03-07 15:52 UTC by Adam Baxter
Modified: 2016-09-20 05:05 UTC (History)
1 user (show)

Fixed In Version:
Clone Of:
Environment:
Last Closed: 2014-08-06 19:51:10 UTC
Type: Bug
Embargoed:


Attachments (Terms of Use)

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


Note You need to log in before you can comment on or make changes to this bug.