1
0
Fork 0
mirror of https://github.com/Radarr/Radarr synced 2024-12-23 00:12:44 +00:00

Fix Migration NullRef in MigratePrimaries

Fixes #6716
This commit is contained in:
Qstick 2021-11-09 18:06:43 -06:00
parent f0f8a4ffaf
commit 8d0a26e284

View file

@ -789,7 +789,7 @@ private List<string> MigrateLanguages(string mediaInfoLanguages)
private string MigratePrimaries(string primary) private string MigratePrimaries(string primary)
{ {
return primary.Replace("BT.", "bt"); return primary.IsNotNullOrWhiteSpace() ? primary.Replace("BT.", "bt") : primary;
} }
private string MigrateTransferCharacteristics(string transferCharacteristics) private string MigrateTransferCharacteristics(string transferCharacteristics)