-
Type:
Bug Report
-
Resolution: Fixed
-
Priority:
L3 - Default
-
Affects Version/s: 7.5.0
-
Component/s: 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.