Well, I can tell you what's happening, but I can't tell you why:
In the failing code,
file.isDirectory is true, but file.listFiles is returning null. Per the java.io.File spec, that shouldn't happen.
Anything special about the directory you've installed GF into?
[Message sent by forum member 'driscoll' (jim.driscoll_at_sun.com)]
http://forums.java.net/jive/thread.jspa?messageID=382244