From 87bb392b41656eb0e0b700bc783ed253dd7ac041 Mon Sep 17 00:00:00 2001 From: Drewster727 Date: Tue, 21 Jun 2016 15:50:39 -0500 Subject: [PATCH] fix obj ref error when scheduler runs (ProviderId is null?) --- PlexRequests.Services/Jobs/PlexAvailabilityChecker.cs | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/PlexRequests.Services/Jobs/PlexAvailabilityChecker.cs b/PlexRequests.Services/Jobs/PlexAvailabilityChecker.cs index 227540bb5..253ba7af3 100644 --- a/PlexRequests.Services/Jobs/PlexAvailabilityChecker.cs +++ b/PlexRequests.Services/Jobs/PlexAvailabilityChecker.cs @@ -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; }