Skip to content

Commit

Permalink
Merge pull request #273 from facming/dev
Browse files Browse the repository at this point in the history
add empty check
  • Loading branch information
yanyanho authored Jul 28, 2024
2 parents 5ee0807 + 3be51cc commit 341af13
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 341af13

Please sign in to comment.