Skip to content

Commit 9fcdfe5

Browse files
author
Vijayendra Bhamidipati
committed
CS-15024: NullPointerException thrown while executing GetVmStatsCommand
Description: Fixing incorrect non-null object check.
1 parent ffaa8cc commit 9fcdfe5

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

core/src/com/cloud/hypervisor/vmware/resource/VmwareResource.java

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -4194,7 +4194,7 @@ public synchronized VmwareContext getServiceContext(Command cmd) {
41944194

41954195
@Override
41964196
public synchronized void invalidateServiceContext(VmwareContext context) {
4197-
if (_serviceContext == null) {
4197+
if (_serviceContext != null) {
41984198
_serviceContext.close();
41994199
}
42004200
_serviceContext = null;

0 commit comments

Comments
 (0)