FileAdapter: Avoid possible NPE