incubator-cloudstack-commits mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From ke4...@apache.org
Subject [18/50] git commit: CS-15024: NullPointerException thrown while executing GetVmStatsCommand
Date Sun, 27 May 2012 22:30:43 GMT
CS-15024: NullPointerException thrown while executing GetVmStatsCommand

Description:

	Fixing incorrect non-null object check.


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

Branch: refs/heads/master
Commit: 9fcdfe5b19f238c4a809a3df6b4e21478117cd30
Parents: ffaa8cc
Author: Vijayendra Bhamidipati <vijayendra.bhamidipati@citrix.com>
Authored: Mon May 21 22:30:41 2012 -0700
Committer: Vijayendra Bhamidipati <vijayendra.bhamidipati@citrix.com>
Committed: Fri May 25 18:24:02 2012 -0700

----------------------------------------------------------------------
 .../hypervisor/vmware/resource/VmwareResource.java |    2 +-
 1 files changed, 1 insertions(+), 1 deletions(-)
----------------------------------------------------------------------


http://git-wip-us.apache.org/repos/asf/incubator-cloudstack/blob/9fcdfe5b/core/src/com/cloud/hypervisor/vmware/resource/VmwareResource.java
----------------------------------------------------------------------
diff --git a/core/src/com/cloud/hypervisor/vmware/resource/VmwareResource.java b/core/src/com/cloud/hypervisor/vmware/resource/VmwareResource.java
index e4953c2..75d2e75 100755
--- a/core/src/com/cloud/hypervisor/vmware/resource/VmwareResource.java
+++ b/core/src/com/cloud/hypervisor/vmware/resource/VmwareResource.java
@@ -4194,7 +4194,7 @@ public class VmwareResource implements StoragePoolResource, ServerResource,
Vmwa
 
     @Override
     public synchronized void invalidateServiceContext(VmwareContext context) {
-        if (_serviceContext == null) {
+        if (_serviceContext != null) {
             _serviceContext.close();
         }
         _serviceContext = null;


Mime
View raw message