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

NullPointerException accessing properties of BusinessProcessEvent

XMLWordPrintable

    • Icon: Bug Report Bug Report
    • Resolution: Fixed
    • Icon: L3 - Default L3 - Default
    • 7.6.0, 7.6.0-alpha1
    • 7.5.0
    • engine
    • None

      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.

        This is the controller panel for Smart Panels app

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

                Created:
                Updated:
                Resolved: