空指针
This commit is contained in:
@@ -36,9 +36,11 @@ public class MkCarouselServiceImpl extends ServiceImpl<MkCarouselMapper, MkCarou
|
||||
}
|
||||
List<MkCarousel> list = list(queryWrapper);
|
||||
list.forEach(mkCarousel -> {
|
||||
MiniAppPages miniAppPages = miniAppPageService.getById(mkCarousel.getJumpPageId());
|
||||
if (miniAppPages != null) {
|
||||
mkCarousel.setJumpPagePath(miniAppPages.getPath());
|
||||
if (mkCarousel.getJumpPageId() != null) {
|
||||
MiniAppPages miniAppPages = miniAppPageService.getById(mkCarousel.getJumpPageId());
|
||||
if (miniAppPages != null) {
|
||||
mkCarousel.setJumpPagePath(miniAppPages.getPath());
|
||||
}
|
||||
}
|
||||
});
|
||||
return list;
|
||||
|
||||
Reference in New Issue
Block a user