fix obj ref error when scheduler runs (ProviderId is null?)

pull/342/head
Drewster727 9 years ago
parent 465665f414
commit 87bb392b41

@ -225,7 +225,8 @@ namespace PlexRequests.Services.Jobs
{
if (advanced)
{
if (show.ProviderId.Equals(providerId, StringComparison.InvariantCultureIgnoreCase))
if (!string.IsNullOrEmpty(show.ProviderId) &&
show.ProviderId.Equals(providerId, StringComparison.InvariantCultureIgnoreCase))
{
return true;
}

Loading…
Cancel
Save