Authored by jack

bug修复

... ... @@ -84,8 +84,12 @@ public class ZabbixIpTask implements Callable {
}
List<ZabbixHostInfo> hostInfoList = hostMapper.queryHostInfo(ipList);
DEBUG.info("Found host ip to id info {}", hostInfoList);
if (null == hostInfoList) {
return;
}
//after query,save into map
for (ZabbixHostInfo hostInfo : hostInfoList) {
... ... @@ -125,6 +129,10 @@ public class ZabbixIpTask implements Callable {
DEBUG.info("Found id to items info {}", itemInfoList);
if (null == itemInfoList) {
return;
}
for (ZabbixItemInfo itemInfo : itemInfoList) {
List<ZabbixItemInfo> itemInfos = Constants.HOSTID_TO_ITEMS.get(itemInfo.getHostId());
... ...