diff --git a/dolphinscheduler-dao/src/main/java/org/apache/dolphinscheduler/dao/entity/ProcessDefinition.java b/dolphinscheduler-dao/src/main/java/org/apache/dolphinscheduler/dao/entity/ProcessDefinition.java index 23e90f98d4..2eb65b1263 100644 --- a/dolphinscheduler-dao/src/main/java/org/apache/dolphinscheduler/dao/entity/ProcessDefinition.java +++ b/dolphinscheduler-dao/src/main/java/org/apache/dolphinscheduler/dao/entity/ProcessDefinition.java @@ -279,10 +279,15 @@ public class ProcessDefinition { } public void setGlobalParams(String globalParams) { - try { - this.globalParamList = JSONUtils.getMapper().readValue(globalParams, new TypeReference>() {}); - } catch (IOException e) { - logger.error("json parse exception!", e); + if (globalParams == null){ + this.globalParamList = new ArrayList<>(); + }else { + try { + this.globalParamList = JSONUtils.getMapper().readValue(globalParams, new TypeReference>() { + }); + } catch (IOException e) { + logger.error("json parse exception!", e); + } } this.globalParams = globalParams; }