Lucky hour! Grab a free trial license — offer ends in 00:59:58. Claim now
V3179. Calling element access method for potentially empty collection may result in exception.
V3179 Calling the 'First' method for potentially empty collection 'languageParse' may result in exception. ManualImportService.cs 107
public ManualImportItem ReprocessItem(string path,
string downloadId,
int movieId,
string releaseGroup)
{
var rootFolder = Path.GetDirectoryName(path);
var movie = _movieService.GetMovie(movieId);
var languageParse = LanguageParser.ParseLanguages(path);
if ( languageParse.Count <= 1
&& languageParse.First() == Language.Unknown // <=
&& movie != null)
{
....
}
....
}