NPE in file manager fixed.