bug 13478: check null

status 13478: resolved fixed

reviewed-by: edison
This commit is contained in:
anthony 2012-02-07 10:41:44 -08:00
parent 02075c3a2d
commit 22bbd8e766

View File

@ -184,7 +184,7 @@ public class UserVmDomRInvestigator extends AbstractInvestigatorImpl {
for (Long hostId : otherHosts) {
try {
Answer pingTestAnswer = _agentMgr.easySend(hostId, new PingTestCommand(routerPrivateIp, privateIp));
if (pingTestAnswer.getResult()) {
if (pingTestAnswer!=null && pingTestAnswer.getResult()) {
if (s_logger.isDebugEnabled()) {
s_logger.debug("user vm " + vm.getHostName() + " has been successfully pinged, returning that it is alive");
}