Merge "Added Security Rule for Custom ICMP"
[ovsdb.git] / openstack / net-virt-providers / src / main / java / org / opendaylight / ovsdb / openstack / netvirt / providers / openflow13 / services / EgressAclService.java
index 313e34b1b35054745cf05aec37aec5503096decc..e62ebb05387c5f0a8ca73230438f03b7108e4e39 100644 (file)
@@ -64,6 +64,10 @@ public class EgressAclService extends AbstractServiceInstance implements EgressA
                                        List<Neutron_IPs> srcAddressList, boolean write) {
 
         LOG.trace("programPortSecurityAcl: neutronSecurityGroup: {} ", securityGroup);
+        if (securityGroup == null || securityGroup.getSecurityRules() == null) {
+            return;
+        }
+
         List<NeutronSecurityRule> portSecurityList = securityGroup.getSecurityRules();
         /* Iterate over the Port Security Rules in the Port Security Group bound to the port*/
         for (NeutronSecurityRule portSecurityRule : portSecurityList) {