luowei hai 1 ano
pai
achega
6bd61ea5ec

+ 1 - 1
soc-modules/soc-modules-core/src/main/java/com/xunmei/core/information/service/impl/CoreMessageCenterServiceImpl.java

@@ -110,7 +110,7 @@ public class CoreMessageCenterServiceImpl extends ServiceImpl<CoreMessageCenterM
         List<Long> longs = coreAnnouncementNotificationMapper.selectReadByUser(loginUser.getUserid());
         List<Long> collect1 = messageAppPageVos.stream().map(MessageAppPageVo::getId).collect(Collectors.toList());
         Integer i = 0;
-        if (CollectionUtils.isNotEmpty(collect1) && CollectionUtils.isNotEmpty(longs) && longs.size() != collect1.size()) {
+        if (CollectionUtils.isNotEmpty(collect1) && null!=longs && longs.size() != collect1.size()) {
             i = collect1.size() - longs.size();
         }
         if (i + integer1 <= 0) {