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

NullPointerException accessing properties of BusinessProcessEvent

    XMLWordPrintable

Details

    • Bug Report
    • Resolution: Fixed
    • L3 - Default
    • 7.6.0, 7.6.0-alpha1
    • 7.5.0
    • engine
    • 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.

      mgm-controller-panel

        This is the controller panel for Smart Panels app

        Attachments

          Activity

            People

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

              Dates

                Created:
                Updated:
                Resolved:

                Salesforce