fix nullpointer when there are no files present