mirror of https://github.com/apache/cloudstack.git
bug 13829: Fix NPE in ExternalFirewallDeviceManagerImpl
Reviewed-by: Edison
This commit is contained in:
parent
107e4a403e
commit
59bdf2dd83
|
|
@ -363,6 +363,11 @@ public abstract class ExternalFirewallDeviceManagerImpl extends AdapterBase impl
|
|||
}
|
||||
} else {
|
||||
ExternalFirewallDeviceVO fwDeviceVO = getExternalFirewallForNetwork(network);
|
||||
if (fwDeviceVO == null) {
|
||||
s_logger.warn("Network shutdown requested on external firewall element, which did not implement the network." +
|
||||
" Either network implement failed half way through or already network shutdown is completed.");
|
||||
return true;
|
||||
}
|
||||
externalFirewall = _hostDao.findById(fwDeviceVO.getHostId());
|
||||
}
|
||||
|
||||
|
|
|
|||
Loading…
Reference in New Issue