[cherry-pick] Construct processInstance may NPE when master handling command (#14888)
This commit is contained in:
parent
e7bdefd875
commit
fb52207cfa
|
|
@ -927,6 +927,9 @@ public class ProcessServiceImpl implements ProcessService {
|
|||
throw new IllegalArgumentException("Cannot find the process definition for this workflowInstance");
|
||||
}
|
||||
Map<String, String> cmdParam = JSONUtils.toMap(command.getCommandParam());
|
||||
if(cmdParam == null){
|
||||
cmdParam = new HashMap<>();
|
||||
}
|
||||
int processInstanceId = command.getProcessInstanceId();
|
||||
if (processInstanceId == 0) {
|
||||
processInstance = generateNewProcessInstance(processDefinition, command, cmdParam);
|
||||
|
|
|
|||
Loading…
Reference in New Issue