From 8d0a26e284490c1b9e8d7d875ef9002d9eee9ff4 Mon Sep 17 00:00:00 2001 From: Qstick Date: Tue, 9 Nov 2021 18:06:43 -0600 Subject: [PATCH] Fix Migration NullRef in MigratePrimaries Fixes #6716 --- .../Datastore/Migration/199_mediainfo_to_ffmpeg.cs | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/NzbDrone.Core/Datastore/Migration/199_mediainfo_to_ffmpeg.cs b/src/NzbDrone.Core/Datastore/Migration/199_mediainfo_to_ffmpeg.cs index 48a108c4d..1924e0de7 100644 --- a/src/NzbDrone.Core/Datastore/Migration/199_mediainfo_to_ffmpeg.cs +++ b/src/NzbDrone.Core/Datastore/Migration/199_mediainfo_to_ffmpeg.cs @@ -789,7 +789,7 @@ namespace NzbDrone.Core.Datastore.Migration private string MigratePrimaries(string primary) { - return primary.Replace("BT.", "bt"); + return primary.IsNotNullOrWhiteSpace() ? primary.Replace("BT.", "bt") : primary; } private string MigrateTransferCharacteristics(string transferCharacteristics)