diff --git a/blade-service/blade-user/src/main/java/org/springblade/system/user/service/impl/UserServiceImpl.java b/blade-service/blade-user/src/main/java/org/springblade/system/user/service/impl/UserServiceImpl.java index ad84c49b..4b3ba1a4 100644 --- a/blade-service/blade-user/src/main/java/org/springblade/system/user/service/impl/UserServiceImpl.java +++ b/blade-service/blade-user/src/main/java/org/springblade/system/user/service/impl/UserServiceImpl.java @@ -173,6 +173,9 @@ public class UserServiceImpl extends BaseServiceImpl implement } private UserInfo buildUserInfo(User user, UserEnum userEnum) { + if (ObjectUtil.isEmpty(user)) { + return null; + } UserInfo userInfo = new UserInfo(); userInfo.setUser(user); if (Func.isNotEmpty(user)) {