added check if filelist!=null in getProjectNames