-
Bug Report
-
Resolution: Fixed
-
L3 - Default
-
7.5.0
-
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.