Browse Source

Using Jackson instead of Fastjson

pull/2/head
simon824 5 years ago
parent
commit
9ada3c7aac
  1. 7
      dolphinscheduler-dao/src/main/java/org/apache/dolphinscheduler/dao/entity/ProcessDefinition.java

7
dolphinscheduler-dao/src/main/java/org/apache/dolphinscheduler/dao/entity/ProcessDefinition.java

@ -279,11 +279,16 @@ public class ProcessDefinition {
} }
public void setGlobalParams(String globalParams) { public void setGlobalParams(String globalParams) {
if (globalParams == null){
this.globalParamList = new ArrayList<>();
}else {
try { try {
this.globalParamList = JSONUtils.getMapper().readValue(globalParams, new TypeReference<List<Property>>() {}); this.globalParamList = JSONUtils.getMapper().readValue(globalParams, new TypeReference<List<Property>>() {
});
} catch (IOException e) { } catch (IOException e) {
logger.error("json parse exception!", e); logger.error("json parse exception!", e);
} }
}
this.globalParams = globalParams; this.globalParams = globalParams;
} }

Loading…
Cancel
Save