Commit ec0cf505e677e30f4a7e2a88b622dbdb3e9d9581
1 parent
1f6cbae1
update
Showing
1 changed file
with
3 additions
and
0 deletions
src/main/java/com/cnlive/shenhe/job/YiDunUrlResultJob.java
| ... | ... | @@ -90,6 +90,9 @@ public class YiDunUrlResultJob { |
| 90 | 90 | JSONObject jsonObject = resultJSONArray.getJSONObject(i); |
| 91 | 91 | String dataId = jsonObject.getString("dataId"); |
| 92 | 92 | ShyYidun yiDunMsg = yiDunServiceImpl.getYiDunMsg(dataId); |
| 93 | + if(yiDunMsg==null){ | |
| 94 | + continue; | |
| 95 | + } | |
| 93 | 96 | newYiDunMsg.setId(yiDunMsg.getId()); |
| 94 | 97 | newYiDunMsg.setDuration(-1); |
| 95 | 98 | newYiDunMsg.setUpdate_time(new Date()); | ... | ... |