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