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: [email protected]
For queries about this service, please contact Infrastructure at:
[email protected]