Functional Programming in Java, Second Edition: p.62, File.listFiles() is a bit different

p.62

We read:

Once again, we can use lambda expressions instead of creating an anonymous inner class. Let’s look at an example of listing all hidden files in the current directory.

final File[] files = new File(".").listFiles(file -> file.isHidden());

Interesting, unlike the other approaches, this one does not generate an exception when the file under examination, here ., does not exist or is not a directory. Should that be mentioned?