Skip the null Host for CheckRouterTask

This commit is contained in:
Sheng Yang 2011-08-11 13:21:52 -07:00
parent 333510db0e
commit 576aec60e0
1 changed files with 1 additions and 1 deletions

View File

@ -764,7 +764,7 @@ public class VirtualNetworkApplianceManagerImpl implements VirtualNetworkApplian
String privateIP = router.getPrivateIpAddress();
HostVO host = _hostDao.findById(router.getHostId());
/* Only cover hosts managed by this management server */
if (host.getManagementServerId() != ManagementServerNode.getManagementServerId()) {
if (host == null || host.getManagementServerId() != ManagementServerNode.getManagementServerId()) {
continue;
}
if (privateIP != null) {