Uploaded image for project: 'JBoss BPMS Platform'
  1. JBoss BPMS Platform
  2. RHBPMS-3705

Incorrect NULL handling in org.jbpm.services.task.impl.model.xml.JaxbOrganizationalEntity

    XMLWordPrintable

Details

    • Bug
    • Resolution: Done
    • Minor
    • 6.0.2
    • 6.0.1
    • jBPM Core
    • None
    • All All

    Description

      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

      Attachments

        Activity

          People

            marco.rietveld Marco Rietveld (Inactive)
            rhn-support-abaxter Adam Baxter (Inactive)
            Ivo Bek Ivo Bek
            Ivo Bek Ivo Bek
            Votes:
            0 Vote for this issue
            Watchers:
            1 Start watching this issue

            Dates

              Created:
              Updated:
              Resolved: