CS-15024: NullPointerException thrown while executing GetVmStatsCommand

Description:

	Fixing incorrect non-null object check.
This commit is contained in:
Vijayendra Bhamidipati 2012-05-21 22:30:41 -07:00
parent 960d92dccf
commit 99a546191f
1 changed files with 1 additions and 1 deletions

View File

@ -4185,7 +4185,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;