From ffc0ec34c40c48c7859414c24fb5b498736fc1d3 Mon Sep 17 00:00:00 2001 From: Drewster727 Date: Tue, 21 Jun 2016 21:11:36 -0500 Subject: [PATCH] null provider check for movies --- 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 253ba7af3..68b8da01b 100644 --- a/PlexRequests.Services/Jobs/PlexAvailabilityChecker.cs +++ b/PlexRequests.Services/Jobs/PlexAvailabilityChecker.cs @@ -179,7 +179,8 @@ namespace PlexRequests.Services.Jobs { if (advanced) { - if (movie.ProviderId.Equals(providerId, StringComparison.InvariantCultureIgnoreCase)) + if (!string.IsNullOrEmpty(movie.ProviderId) && + movie.ProviderId.Equals(providerId, StringComparison.InvariantCultureIgnoreCase)) { return true; }