出错代码:
HashMap<String,Integer> map;
...
tempVo.setNPfsl(tempVo.getNPfsl()-zbxhanddsslMap.get(tempVo.getCZbbh()));
代码跑到第二句的时候抛出空指针异常;
检查发现 tempVo非空、tempVo.getNPfsl()非空、zbxhanddsslMap非空、tempVo.getCZbbh()非空;
HashMap这里也不应该抛出空指针异常啊,
最终经过排查,问题出现在将map返回的null进行与integer类型计算上;