Commit 387e2a029fa720b6645740cc9370dc42c1ec049d
1 parent
e60f3171
空指针报错修改
Showing
1 changed file
with
1 additions
and
1 deletions
urbanops-module-system/src/main/java/com/zteits/urbanops/module/system/service/permission/RoleServiceImpl.java
| ... | ... | @@ -326,7 +326,7 @@ public class RoleServiceImpl implements RoleService { |
| 326 | 326 | public List<Long> getUserIdsByRoleCode(String roleCode) { |
| 327 | 327 | RoleDO roleDO = roleMapper.selectOne(RoleDO::getCode, roleCode); |
| 328 | 328 | if (roleDO == null) { |
| 329 | - return null; | |
| 329 | + return Collections.emptyList(); | |
| 330 | 330 | } |
| 331 | 331 | QueryWrapper<UserRoleDO> sql = new QueryWrapper<>(); |
| 332 | 332 | sql.select("user_id"); | ... | ... |