java.util.ConcurrentModificationException: null 异常解决

这个异常是在遍历 list的时候,对list进行删除操作导致的. 一般是for each循环遍历

解决方法:改为传统的for循环遍历方式

for (int i = 0; i < list.size(); i++) {
if (list.get(i).getSecond() <=0) {
list.remove(i);
}
}

需要 了解源码的同学请移步:https://www.cnblogs.com/dolphin0520/p/3933551.html