Uploaded image for project: 'camunda BPM'
  1. camunda BPM
  2. CAM-6164

NullPointerException accessing properties of BusinessProcessEvent

    XMLWordPrintable

    Details

    • Type: Bug Report
    • Status: Closed
    • Priority: L3 - Default
    • Resolution: Fixed
    • Affects Version/s: 7.5.0
    • Fix Version/s: 7.6.0, 7.6.0-alpha1
    • Component/s: engine
    • Labels:
      None

      Description

      Accessing a BusinessProcessEvent injected via CDI event listener I was affected by a NullPointerException trying to access the taskId of a none-HumanTask event. This would be fine of course, but the method BusinessProcessEvent.getTaskId and BusinessProcessEvent.getTaskDefinitionKey are documented to return null if the event is not a task event. Both methods access the delegateTask without checking if it is != null.
      I think the documented behavior is less error prone so this should be considered a bug.

        Attachments

          Activity

            People

            Assignee:
            thorben.lindhauer Thorben Lindhauer
            Reporter:
            bentrm Benjamin
            Votes:
            1 Vote for this issue
            Watchers:
            2 Start watching this issue

              Dates

              Created:
              Updated:
              Resolved: