File("foo").getParent() is null if "foo" is a symbolic link - File("./foo").getParent() is not. PR 49137.