findbugs: possible nullpointer

Project: http://git-wip-us.apache.org/repos/asf/cloudstack/repo
Commit: http://git-wip-us.apache.org/repos/asf/cloudstack/commit/43a39d1e
Tree: http://git-wip-us.apache.org/repos/asf/cloudstack/tree/43a39d1e
Diff: http://git-wip-us.apache.org/repos/asf/cloudstack/diff/43a39d1e

Branch: refs/heads/hotfix/scp-exception
Commit: 43a39d1eb0220b2a2588c30fbd528bd049262e5f
Parents: 4485dcb
Author: Daan Hoogland <d...@onecht.net>
Authored: Thu Feb 19 10:27:51 2015 +0100
Committer: Daan Hoogland <d...@onecht.net>
Committed: Thu Feb 19 10:27:51 2015 +0100

----------------------------------------------------------------------
 .../orchestration/src/com/cloud/vm/VirtualMachineManagerImpl.java  | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)
----------------------------------------------------------------------


http://git-wip-us.apache.org/repos/asf/cloudstack/blob/43a39d1e/engine/orchestration/src/com/cloud/vm/VirtualMachineManagerImpl.java
----------------------------------------------------------------------
diff --git 
a/engine/orchestration/src/com/cloud/vm/VirtualMachineManagerImpl.java 
b/engine/orchestration/src/com/cloud/vm/VirtualMachineManagerImpl.java
index a94a83e..58e8030 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;
                     }
 

Reply via email to