From 4baba902eadc3ac374871a7898a18abceef4e793 Mon Sep 17 00:00:00 2001 From: bakerboy448 <55419169+bakerboy448@users.noreply.github.com> Date: Sat, 4 Oct 2025 14:44:56 -0500 Subject: [PATCH] Fixed: nullref fingerprinting --- .../TrackImport/Identification/IdentificationService.cs | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/src/NzbDrone.Core/MediaFiles/TrackImport/Identification/IdentificationService.cs b/src/NzbDrone.Core/MediaFiles/TrackImport/Identification/IdentificationService.cs index ccd0b3939..1e76c1405 100644 --- a/src/NzbDrone.Core/MediaFiles/TrackImport/Identification/IdentificationService.cs +++ b/src/NzbDrone.Core/MediaFiles/TrackImport/Identification/IdentificationService.cs @@ -155,9 +155,9 @@ private bool FingerprintingAllowed(bool newDownload) private bool ShouldFingerprint(LocalAlbumRelease localAlbumRelease) { var worstTrackMatchDist = localAlbumRelease.TrackMapping?.Mapping - .DefaultIfEmpty() - .MaxBy(x => x.Value.Item2.NormalizedDistance()) - .Value.Item2.NormalizedDistance() ?? 1.0; + .Select(x => x.Value.Item2.NormalizedDistance()) + .DefaultIfEmpty(1.0) + .Max(); if (localAlbumRelease.Distance.NormalizedDistance() > 0.15 || localAlbumRelease.TrackMapping.LocalExtra.Any() ||