diff --git a/src/NzbDrone.Common/Disk/OsPath.cs b/src/NzbDrone.Common/Disk/OsPath.cs index 677316b368..0023d25bc5 100644 --- a/src/NzbDrone.Common/Disk/OsPath.cs +++ b/src/NzbDrone.Common/Disk/OsPath.cs @@ -376,11 +376,6 @@ public bool Equals(OsPath other) public bool Equals(OsPath other, bool ignoreTrailingSlash) { - if (ReferenceEquals(other, null)) - { - return false; - } - if (_path == other._path) { return true; @@ -399,21 +394,11 @@ public bool Equals(OsPath other, bool ignoreTrailingSlash) public static bool operator ==(OsPath left, OsPath right) { - if (ReferenceEquals(left, null)) - { - return ReferenceEquals(right, null); - } - return left.Equals(right); } public static bool operator !=(OsPath left, OsPath right) { - if (ReferenceEquals(left, null)) - { - return !ReferenceEquals(right, null); - } - return !left.Equals(right); } diff --git a/src/NzbDrone.Core/MetadataSource/SkyHook/SkyHookProxy.cs b/src/NzbDrone.Core/MetadataSource/SkyHook/SkyHookProxy.cs index e3c6658d64..6bffed7035 100644 --- a/src/NzbDrone.Core/MetadataSource/SkyHook/SkyHookProxy.cs +++ b/src/NzbDrone.Core/MetadataSource/SkyHook/SkyHookProxy.cs @@ -128,8 +128,8 @@ public Tuple> GetMovieInfo(int tmdbId) } var credits = new List(); - credits.AddRange(httpResponse.Resource.Credits.Cast.Select(MapCast)); - credits.AddRange(httpResponse.Resource.Credits.Crew.Select(MapCrew)); + credits.AddRange(httpResponse.Resource.Credits?.Cast?.Select(MapCast) ?? Enumerable.Empty()); + credits.AddRange(httpResponse.Resource.Credits?.Crew?.Select(MapCrew) ?? Enumerable.Empty()); var movie = MapMovie(httpResponse.Resource);