diff --git a/src/Jackett.Server/Services/ProtectionService.cs b/src/Jackett.Server/Services/ProtectionService.cs index cde6d3b9b..ecd00fbbe 100644 --- a/src/Jackett.Server/Services/ProtectionService.cs +++ b/src/Jackett.Server/Services/ProtectionService.cs @@ -42,11 +42,17 @@ namespace Jackett.Server.Services public string Protect(string plainText) { + if (string.IsNullOrEmpty(plainText)) + return string.Empty; + return _protector.Protect(plainText); } public string UnProtect(string plainText) { + if (string.IsNullOrEmpty(plainText)) + return string.Empty; + return _protector.Unprotect(plainText); }