Skip to content

Commit

Permalink
fix: npe
Browse files Browse the repository at this point in the history
  • Loading branch information
kalencaya committed Dec 30, 2023
1 parent e9c3534 commit 4733a19
Showing 1 changed file with 3 additions and 0 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -48,6 +48,9 @@ default JsonNode toDo(DiJobAttrVO dto) {
@Override
default DiJobAttrVO toDto(JsonNode entity) {
DiJobAttrVO vo = new DiJobAttrVO();
if (entity == null) {
return vo;
}
ObjectNode dagAttrs = (ObjectNode) entity;
Map<String, String> variable = JacksonUtil.toObject(dagAttrs.get(JobAttrType.VARIABLE.getValue()), new TypeReference<Map<String, String>>() {});
Map<String, String> env = JacksonUtil.toObject(dagAttrs.get(JobAttrType.ENV.getValue()), new TypeReference<Map<String, String>>() {});
Expand Down

0 comments on commit 4733a19

Please sign in to comment.