New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
NPE in BoxedObjectArray.length #798
Comments
Imported From: https://issues.scala-lang.org/browse/SI-798?orig=1
|
@lrytz said: |
@odersky said: |
Martin Kneissl (mkneissl) said:
See also attached stack trace. |
Martin Kneissl (mkneissl) said: |
@paulp said: def files() = top.listFiles match {
case null => Nil
case xs => xs.toList
}
if (top.isDirectory) {
for (fn <- files) walk(fn)
} else {
println(top)
} |
Martin Kneissl (mkneissl) said: File.listFiles returns null for example when the process has no permissions to list the files of the directory. |
The following code generates cause BoxedObjectArray.length to throw an NPE.
To reproduce run against a large enough directory tree
The text was updated successfully, but these errors were encountered: