fix:修复添加动画rss时的一处空指针错误

This commit is contained in:
Yutousama 2022-07-18 19:51:20 +08:00
parent 62831348e4
commit c284931d1d

View File

@ -39,7 +39,7 @@ public class BangumiServiceImpl implements BangumiService {
@Override
public int addBangumiItem(BangumiItem... list) {
for (BangumiItem item : list) {
if (item.getId().equals(-1)) {
if (item.getId() != null&&item.getId().equals(-1)) {
RedisTools.list_add("anim_tmp_rss", JSON.toJSON(item).toString());
} else if (itemDao.insert(item) <= 0) {
return 0;