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
960d92dccf
commit
99a546191f
|
|
@ -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;
|
||||
|
|
|
|||
Loading…
Reference in New Issue