bug 13679: cosmetic fix to remove NPE warning message from log. Reviewed-By: anthony

This commit is contained in:
Kelven Yang 2012-02-14 12:08:04 -08:00
parent 2c14d45702
commit a72d419f8c

View File

@ -1633,6 +1633,11 @@ public class ConsoleProxyManagerImpl implements ConsoleProxyManager, ConsoleProx
try {
long proxyVmId = startupCmd.getProxyVmId();
ConsoleProxyVO consoleProxy = _consoleProxyDao.findById(proxyVmId);
if(consoleProxy == null) {
s_logger.info("Proxy " + proxyVmId + " is no longer in DB, skip sending startup command");
return;
}
assert (consoleProxy != null);
HostVO consoleProxyHost = findConsoleProxyHostByName(consoleProxy.getHostName());