added not null validation to filePath
Merge pull request #1071 from ashwinchandrap/filePathValidation

added not null validation to filePath