Browse Source

When running a task, the resource file is lost, which results in an error

pull/3/MERGE
BoYiZhang 4 years ago
parent
commit
ef6cc62b96
  1. 2
      dolphinscheduler-common/src/main/java/org/apache/dolphinscheduler/common/utils/VarPoolUtils.java

2
dolphinscheduler-common/src/main/java/org/apache/dolphinscheduler/common/utils/VarPoolUtils.java

@ -36,7 +36,7 @@ public class VarPoolUtils {
Map<String,Object> taskParams = JSONUtils.parseObject(taskParamsJson, HashMap.class);
Object localParamsObject = taskParams.get("localParams");
if (null != localParamsObject && propToValue.size() >0) {
if (null != localParamsObject && null != propToValue && propToValue.size() > 0) {
ArrayList<Object> localParams = (ArrayList)localParamsObject;
for (int i = 0; i < localParams.size(); i++) {
Map<String,String> map = (Map)localParams.get(i);

Loading…
Cancel
Save