提交 9ada3c7a 编写于 作者: S simon824

Using Jackson instead of Fastjson

上级 32863755
......@@ -279,10 +279,15 @@ public class ProcessDefinition {
}
public void setGlobalParams(String globalParams) {
try {
this.globalParamList = JSONUtils.getMapper().readValue(globalParams, new TypeReference<List<Property>>() {});
} 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<List<Property>>() {
});
} catch (IOException e) {
logger.error("json parse exception!", e);
}
}
this.globalParams = globalParams;
}
......
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册