From ddbdbaeeb9352c2e29e1b4b16ec13e8559476681 Mon Sep 17 00:00:00 2001 From: wmqwxb <13628607970@163.com> Date: Wed, 20 Dec 2023 16:45:14 +0800 Subject: [PATCH] fix debug Signed-off-by: wmqwxb <13628607970@163.com> --- .../org/fedai/fate/board/controller/JobDetailController.java | 3 +++ 1 file changed, 3 insertions(+) diff --git a/src/main/java/org/fedai/fate/board/controller/JobDetailController.java b/src/main/java/org/fedai/fate/board/controller/JobDetailController.java index 78e4217d..c48f626b 100644 --- a/src/main/java/org/fedai/fate/board/controller/JobDetailController.java +++ b/src/main/java/org/fedai/fate/board/controller/JobDetailController.java @@ -422,6 +422,9 @@ public ResponseResult getData(@Valid @RequestBody ComponentQueryDTO componentQue return new ResponseResult<>(ErrorCode.FATEFLOW_ERROR_NULL_RESULT); } JSONObject object = JSON.parseObject(result); + if (object.isEmpty()) { + return new ResponseResult(ErrorCode.SUCCESS, object); + } Set set = object.keySet(); String[] keys = set.toArray(new String[0]); JSONArray outputDataArray = new JSONArray();