Error java.lang.NullPointerException: Cannot read the array length because the return value of "java.io.File.list()" is null