直接上代码 BackupController.files List fs= ReadDirector.getFiles(folder); 如果文件夹下的没有备份文件,fs为null,没有进行为空判断,直接执行循环 for(String s:fs){}报空指针异常
登录 后才可以发表评论