Fix NullPointerException in FileTree.

Fix imports.