From 43a39d1eb0220b2a2588c30fbd528bd049262e5f Mon Sep 17 00:00:00 2001 From: Daan Hoogland Date: Thu, 19 Feb 2015 10:27:51 +0100 Subject: [PATCH] findbugs: possible nullpointer --- .../src/com/cloud/vm/VirtualMachineManagerImpl.java | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/engine/orchestration/src/com/cloud/vm/VirtualMachineManagerImpl.java b/engine/orchestration/src/com/cloud/vm/VirtualMachineManagerImpl.java index a94a83e50ba..58e80302a0e 100644 --- a/engine/orchestration/src/com/cloud/vm/VirtualMachineManagerImpl.java +++ b/engine/orchestration/src/com/cloud/vm/VirtualMachineManagerImpl.java @@ -1075,7 +1075,7 @@ public class VirtualMachineManagerImpl extends ManagerBase implements VirtualMac } } s_logger.info("Unable to start VM on " + dest.getHost() + " due to " + (startAnswer == null ? " no start answer" : startAnswer.getDetails())); - if (startAnswer.getContextParam("stopRetry") != null) { + if (startAnswer != null && startAnswer.getContextParam("stopRetry") != null) { break; }