CLOUDSTACK-6238: NPE in HostStatsCollector.

This commit is contained in:
Sanjay Tripathi 2014-03-14 13:35:22 +05:30
parent 286974488e
commit 6a5d3e96c9

View File

@ -343,7 +343,9 @@ public class StatsCollector extends ManagerBase implements ComponentMethodInterc
}
for (HostVO host : gpuEnabledHosts) {
HashMap<String, HashMap<String, Long>> groupDetails = _resourceMgr.getGPUStatistics(host);
_resourceMgr.updateGPUDetails(host.getId(), groupDetails);
if (groupDetails != null) {
_resourceMgr.updateGPUDetails(host.getId(), groupDetails);
}
}
hostIds = _hostGpuGroupsDao.listHostIds();
} catch (Throwable t) {