diff --git a/game-service/src/main/java/awesome/group/game/service/AdminService.java b/game-service/src/main/java/awesome/group/game/service/AdminService.java index 36809c0..633f6e7 100644 --- a/game-service/src/main/java/awesome/group/game/service/AdminService.java +++ b/game-service/src/main/java/awesome/group/game/service/AdminService.java @@ -67,7 +67,7 @@ public class AdminService { } wrapper.orderByDesc(MatrixAdvRecord::getId); if (ownerId != 1) { - List appIds = appList.stream().filter(x -> x.getOwnerId() == ownerId).map(MatrixApp::getId).toList(); + List appIds = appList.stream().filter(x -> x.getOwnerId() != null && x.getOwnerId() == ownerId).map(MatrixApp::getId).toList(); wrapper.in(MatrixAdvRecord::getAppId, appIds); } int page = param.current;