摘要:
List actualList=null;if(matches.size()!=0) { for (SearchMatchItem item : matches) { actualList.add(item.getId()); }}上面的代码会引发空指针异常,因为list创建的时候没有指向一个引用改成下面的代码。 List actualList=new... 阅读全文
posted @ 2017-09-05 13:37
朱古力88
阅读(15826)
评论(1)
推荐(6)
浙公网安备 33010602011771号