Infinite loop in ErrorEndEventActivitiBehavior if errorEndEvent defined in a call-activity sub process and no matching boundary event

Description

When an errorEndEvent is added to a process being called by a call activity, if no matching error boundary event has been added in the process or super processes an infinite loop occurs in ErrorEndEventActivitiBehavior.executeCatchInSuperProcess()

The loop condition which never evaluates to false is
while (!found && outgoingExecution != null)

Similar issue was logged in the forums as well: http://forums.activiti.org/en/viewtopic.php?f=6&t=1735

Environment

None

Assignee

Bernd Ruecker (camunda)

Reporter

Andrew Welsh

Labels

None

Components

Fix versions

Affects versions

Priority

Major
Configure