Added handling for null parameter
Added null check
Added tests for FileFilter