Fixed npe while getting data source name for local files.