报错位置如下:
报错如下:
不知道该如何解决,希望高手可以指点一下,谢谢。
补充:根据回复两位的提示,确实是因为nrofCopies为null引起的, private Map properties; public Object getProperty(String key) { if (this.properties == null) { //程序进入到了这里 return null; } return this.properties.get(key); } 请问如何解决呢
收起
这不是很明显吗?orofCopies为空 所以你在if判断报空指针异常 debug看看前面两行代码是否给orofCopies赋值成功
报告相同问题?