Prevent NullRef on CustomFormat parse
This commit is contained in:
parent
f2b2eb69a3
commit
528feb14c9
|
@ -94,7 +94,11 @@ namespace NzbDrone.Core.CustomFormats
|
||||||
|
|
||||||
public List<CustomFormat> ParseCustomFormat(ParsedEpisodeInfo episodeInfo, Series series)
|
public List<CustomFormat> ParseCustomFormat(ParsedEpisodeInfo episodeInfo, Series series)
|
||||||
{
|
{
|
||||||
episodeInfo.ExtraInfo["OriginalLanguage"] = series.OriginalLanguage;
|
if (series?.OriginalLanguage != null)
|
||||||
|
{
|
||||||
|
episodeInfo.ExtraInfo["OriginalLanguage"] = series.OriginalLanguage;
|
||||||
|
}
|
||||||
|
|
||||||
return ParseCustomFormat(episodeInfo, _formatService.All());
|
return ParseCustomFormat(episodeInfo, _formatService.All());
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
Loading…
Reference in New Issue