Parsing call-activity may lead to NullPointerException

Description

When a process definition contains a call-activity with missing "calledElement" attribute, a NullPointerException occurs during parse phase.
The method parseCallActivity(Element, ScopeImpl) in org.activiti.engine.impl.bpmn.parser.BpmnParse does a check for "calledElement". But afterwards the local field "calledElement" is accessed no matter if it is null or not.
The offending code line is:
if (calledElement.matches(expressionRegex)) {

It should be investigated to what extend the processing should continue in case the call-activity element is not valid.

Environment

None

Assignee

Tijs Rademakers

Reporter

Daniel Beer

Labels

None

Components

Fix versions

Affects versions

Priority

Minor
Configure