diff --git a/src/NzbDrone.Core/AutoTagging/Specifications/GenreSpecification.cs b/src/NzbDrone.Core/AutoTagging/Specifications/GenreSpecification.cs index 0940fdc14..c4548888a 100644 --- a/src/NzbDrone.Core/AutoTagging/Specifications/GenreSpecification.cs +++ b/src/NzbDrone.Core/AutoTagging/Specifications/GenreSpecification.cs @@ -1,6 +1,7 @@ using System.Collections.Generic; using System.Linq; using FluentValidation; +using NzbDrone.Common.Extensions; using NzbDrone.Core.Annotations; using NzbDrone.Core.Movies; using NzbDrone.Core.Validation; @@ -27,7 +28,7 @@ public class GenreSpecification : AutoTaggingSpecificationBase protected override bool IsSatisfiedByWithoutNegate(Movie movie) { - return movie.MovieMetadata.Value.Genres.Any(genre => Value.Contains(genre)); + return movie?.MovieMetadata?.Value?.Genres.Any(genre => Value.ContainsIgnoreCase(genre)) ?? false; } public override NzbDroneValidationResult Validate()