You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@cloudstack.apache.org by GitBox <gi...@apache.org> on 2022/03/31 09:44:56 UTC

[GitHub] [cloudstack] Pearl1594 commented on a change in pull request #6182: UI: Fix minor UI issues

Pearl1594 commented on a change in pull request #6182:
URL: https://github.com/apache/cloudstack/pull/6182#discussion_r839395668



##########
File path: server/src/main/java/com/cloud/network/vpc/NetworkACLServiceImpl.java
##########
@@ -1146,6 +1146,9 @@ protected void validateMoveAclRulesData(NetworkACLItemVO ruleBeingMoved, Network
         NetworkACLVO acl = _networkACLDao.findById(aclId);
         Vpc vpc = _entityMgr.findById(Vpc.class, acl.getVpcId());
         Account caller = CallContext.current().getCallingAccount();
+        if (acl.getVpcId() == null) {
+            throw new InvalidParameterValueException("Unable to move rules for a default ACL");
+        }

Review comment:
       Ah sorry - this wasn't to be part of this PR - this is ideally to prevent an NPE that happens when we try re-ordering rules for a default acl 




-- 
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.

To unsubscribe, e-mail: commits-unsubscribe@cloudstack.apache.org

For queries about this service, please contact Infrastructure at:
users@infra.apache.org