文件空指针错误
adapter显示文件列表时,文件列表的数组为空,
就报空指针错误,我们在getCount方法:
?
fileList == null ? 0 : fileList.length
这样就不会出现空指针错误了。