Skip to content

Commit

Permalink
add empty check
Browse files Browse the repository at this point in the history
  • Loading branch information
facming committed Jul 28, 2024
1 parent 5ee0807 commit 3be51cc
Showing 1 changed file with 4 additions and 0 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -105,6 +105,10 @@ public void aaveListener() {
XxlJobHelper.log("解析aave的graph失败");
throw new RuntimeException("解析aave的graph失败");
}
if(jsonObject == null || jsonObject.isEmpty()){
log.error("jsonObject为空 jsonObject = {}",jsonObject);
return;
}
JSONObject data = jsonObject.getJSONObject("data");
JSONArray positions = data.getJSONArray("positions");
if (positions.isEmpty()) {
Expand Down

0 comments on commit 3be51cc

Please sign in to comment.