1
0
Fork 0
mirror of https://github.com/lidarr/Lidarr synced 2024-12-27 01:57:21 +00:00

Check for null before checking if EST

This commit is contained in:
Mark McDowall 2013-09-08 10:57:03 -07:00
parent b06f1004f8
commit 412adfed71

View file

@ -142,7 +142,7 @@ private static SeriesStatusType GetSeriesStatus(string status)
DateTime result;
//Todo: Remove this when DST ends and/or trakt fixes DST airings in EST/EDT
if (iso.EndsWith("-05:00"))
if (iso != null && iso.EndsWith("-05:00"))
{
iso = iso.Replace("-05:00", "-04:00");
}