android 接口对象为null时

	public interface SelectFile {
		void selectPath(List<HashMap<String, String>> list);
	}

	
	public void setSelectPathListener(SelectFile selectData) {
		this.selectFile = selectData;
	}
 
当不调用setSelectPathListener 时,使用
selectFile .selectPath(); 接口没有实例化,所有为null。需要调用setSelectPathListener来实例化接口对象

猜你喜欢

转载自blog.csdn.net/m0_37143081/article/details/80909197