处理batchData为null的情况

This commit is contained in:
yinjiangyi
2021-09-07 16:02:43 +08:00
parent 0f6a1ab10b
commit b1defed2f3

View File

@@ -81,6 +81,10 @@ public class BaselineSingleThread extends Thread {
e.printStackTrace();
}
if(batchDruidData == null){
batchDruidData = new HashMap<>();
}
try {
LOG.info("完成数据读取获取Server IP" + batchDruidData.size() +
" 运行时间:" + (System.currentTimeMillis() - start));