Caught NPE for some directories.