NPE when executing SignalThrowingEvent

Description

The following is happing:

  • 2 processes: A and B

  • B is started as sub process via CallActivity within A

  • CallActivity contains boundarySignalCatch with signalRef SIGNAL

  • B contains signalThrow for SIGNAL

  • NPE happens when signalThrow in B is reached.

Testproject attached. Tested with 5.11 and 5.12-SNAPSHOT.

Stacktrace (excerpt):
java.lang.NullPointerException
at org.activiti.engine.impl.bpmn.behavior.AbstractBpmnActivityBehavior.hasCompensationHandler(AbstractBpmnActivityBehavior.java:54)
at org.activiti.engine.impl.bpmn.behavior.AbstractBpmnActivityBehavior.leave(AbstractBpmnActivityBehavior.java:43)
at org.activiti.engine.impl.bpmn.behavior.IntermediateThrowSignalEventActivityBehavior.execute(IntermediateThrowSignalEventActivityBehavior.java:61)
at org.activiti.engine.impl.pvm.runtime.AtomicOperationActivityExecute.execute(AtomicOperationActivityExecute.java:44)
at org.activiti.engine.impl.interceptor.CommandContext.performOperation(CommandContext.java:86)

Environment

H2 Unit Test

Assignee

Tijs Rademakers

Reporter

Andreas Weise

Labels

None

Components

Fix versions

Affects versions

Priority

Major
Configure