@@ -55,7 +55,7 @@ public class AgentAuthorizeModelingController extends BaseController {
throw new BusinessException(ResultCode.AUTH_CODE_EXIST);
}
}else {
- if(!authModelings.get(0).getId().equals(param.getId())){
+ if(!authModelings.isEmpty() && !authModelings.get(0).getId().equals(param.getId())){