Fix getting series by alias title and year

This commit is contained in:
Bogdan 2026-04-21 02:54:47 +03:00 committed by GitHub
parent 9454f2940e
commit 6131f1debd
No known key found for this signature in database
GPG key ID: B5690EEEBB952194

View file

@ -144,7 +144,7 @@ private Series GetSeriesAliasTitleAndYear(ParsedEpisodeInfo parsedEpisodeInfo)
{
var series = _seriesService.FindByTvdbId(tvdbId.Value);
if (series.Year == year)
if (series != null && series.Year == year)
{
return series;
}