Fixed: Add Indexer modal fails due to null encoding

This commit is contained in:
Qstick
2021-04-26 21:28:34 -04:00
parent c6c1644d00
commit 183a8f69d7

View File

@@ -68,7 +68,7 @@ namespace Prowlarr.Api.V1.Indexers
resource.BaseUrl = definition.BaseUrl; resource.BaseUrl = definition.BaseUrl;
resource.Description = definition.Description; resource.Description = definition.Description;
resource.Language = definition.Language; resource.Language = definition.Language;
resource.Encoding = definition.Encoding.EncodingName; resource.Encoding = definition.Encoding?.EncodingName ?? null;
resource.Enable = definition.Enable; resource.Enable = definition.Enable;
resource.Redirect = definition.Redirect; resource.Redirect = definition.Redirect;
resource.SupportsRss = definition.SupportsRss; resource.SupportsRss = definition.SupportsRss;