NullPointerException in SignalEventHandler

Description

class: org.activiti.engine.impl.event.SignalEventHandler
line: 51

If no activity can be found for the current execution, a NPE is thrown.
This case appear when a boundary event is added on a subprocess and that NO user task is available in this subprocess.
Check the attach screenshot for an exemple.

Here a quick fix:
if(!activity.equals(execution.getActivity())) {
execution.setActivity(activity);
}

Environment

None

Assignee

Bernd Ruecker (camunda)

Reporter

Ga_l Delbos

Labels

None

Components

Fix versions

Affects versions

Priority

Major
Configure