You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
public List listFiles(String dirPath) {
File srcDir = new File(rootPath.getAbsoluteFile(), dirPath);
File[] files = srcDir.listFiles();
List results = new ArrayList(files.length);
If dirPath doesn't refer to a directory then srcDir.listFiles() will return null, so the files.length access will cause a NullPointerException.
The text was updated successfully, but these errors were encountered:
public List listFiles(String dirPath) {
File srcDir = new File(rootPath.getAbsoluteFile(), dirPath);
File[] files = srcDir.listFiles();
List results = new ArrayList(files.length);
If dirPath doesn't refer to a directory then srcDir.listFiles() will return null, so the files.length access will cause a NullPointerException.
The text was updated successfully, but these errors were encountered: