You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@cloudstack.apache.org by ke...@apache.org on 2012/05/28 00:30:43 UTC
[18/50] git commit: CS-15024: NullPointerException thrown while
executing GetVmStatsCommand
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 <vi...@citrix.com>
Authored: Mon May 21 22:30:41 2012 -0700
Committer: Vijayendra Bhamidipati <vi...@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;