|
@@ -137,7 +137,7 @@ public class AiChatRoleServiceImpl implements AiChatRoleService {
|
|
|
@Override
|
|
|
public List<String> getChatRoleCategoryList() {
|
|
|
List<AiChatRoleDO> list = chatRoleMapper.selectListGroupByCategory(CommonStatusEnum.ENABLE.getStatus());
|
|
|
- return convertList(list, AiChatRoleDO::getCategory, role -> StrUtil.isNotBlank(role.getCategory()));
|
|
|
+ return convertList(list, AiChatRoleDO::getCategory, role -> role != null && StrUtil.isNotBlank(role.getCategory()));
|
|
|
}
|
|
|
|
|
|
}
|