Merge branch 'master' into docker_package

This commit is contained in:
wangliwen 2022-08-02 15:08:17 +08:00
commit 4606a21ab3
1 changed files with 3 additions and 1 deletions

View File

@ -214,7 +214,9 @@ public class ActTaskService extends BaseServiceImpl {
processVariable.putAll(task.getProcessVariables());
dto.setParams(processVariable);
JSONObject jsonObject = JSON.parseObject(JSON.toJSONString(task.getProcessVariables().get(0)));
dto.setUserName(jsonObject.containsKey("user") ? jsonObject.getString("user") : "");
if (jsonObject != null) {
dto.setUserName(jsonObject.containsKey("user") ? jsonObject.getString("user") : "");
}
continue;
}