fix:修复添加动画rss时的一处空指针错误
This commit is contained in:
parent
62831348e4
commit
c284931d1d
@ -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;
|
||||
|
Loading…
Reference in New Issue
Block a user