mirror of https://github.com/apache/cloudstack.git
CS-15024: NullPointerException thrown while executing GetVmStatsCommand
Description: Fixing incorrect non-null object check.
This commit is contained in:
parent
ffaa8cc20a
commit
9fcdfe5b19
|
|
@ -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;
|
||||
|
|
|
|||
Loading…
Reference in New Issue