NPE when there are multiple routes to terminateEndEvent, and both are reached

Description

To illustrate this, I am attaching a unit test along with bpmn.
The NPE is possibly because, once any first route reached the terminateEndEvent, it removes runtime entities, and those are being referred by second route.

But, after NPE the data still exists in DB, and runtime records are not deleted.

Environment

None

Assignee

Joram Barrez

Reporter

Abhishek Mittal

Labels

None

Components

Fix versions

Priority

Medium
Configure