lyhzzz 2 місяців тому
батько
коміт
ae873ee5e6

+ 1 - 1
src/main/java/com/fdkankan/agent/controller/AgentAuthorizeModelingController.java

@@ -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())){
                 throw new BusinessException(ResultCode.AUTH_CODE_EXIST);
             }
         }