LOG.trace("Processing vpn interface {} addition", data.getInterfaceName());
Long vpnId = data.getVpnId();
AclInterface aclInterface = AclInterfaceCacheUtil.getAclInterfaceFromCache(data.getInterfaceName());
- if (!vpnId.equals(aclInterface.getVpnId())) {
+ if (null != aclInterface && !vpnId.equals(aclInterface.getVpnId())) {
aclServiceManager.notify(aclInterface, null, Action.UNBIND);
aclInterface.setVpnId(vpnId);
aclServiceManager.notify(aclInterface, null, Action.BIND);
LOG.trace("Processing vpn interface {} deletion", data.getInterfaceName());
Long vpnId = data.getVpnId();
AclInterface aclInterface = AclInterfaceCacheUtil.getAclInterfaceFromCache(data.getInterfaceName());
- if (vpnId.equals(aclInterface.getVpnId())) {
+ if (null != aclInterface && vpnId.equals(aclInterface.getVpnId())) {
aclServiceManager.notify(aclInterface, null, Action.UNBIND);
aclInterface.setVpnId(null);
aclServiceManager.notify(aclInterface, null, Action.BIND);