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

This commit is contained in:
Drewster727 2016-06-21 15:50:39 -05:00
commit 87bb392b41

View file

@ -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;
}