From 183a8f69d7f3be9217353ea2cdb4f18808348082 Mon Sep 17 00:00:00 2001 From: Qstick Date: Mon, 26 Apr 2021 21:28:34 -0400 Subject: [PATCH] Fixed: Add Indexer modal fails due to null encoding --- src/Prowlarr.Api.V1/Indexers/IndexerResource.cs | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/Prowlarr.Api.V1/Indexers/IndexerResource.cs b/src/Prowlarr.Api.V1/Indexers/IndexerResource.cs index 98005fc07..1592df81d 100644 --- a/src/Prowlarr.Api.V1/Indexers/IndexerResource.cs +++ b/src/Prowlarr.Api.V1/Indexers/IndexerResource.cs @@ -68,7 +68,7 @@ namespace Prowlarr.Api.V1.Indexers resource.BaseUrl = definition.BaseUrl; resource.Description = definition.Description; resource.Language = definition.Language; - resource.Encoding = definition.Encoding.EncodingName; + resource.Encoding = definition.Encoding?.EncodingName ?? null; resource.Enable = definition.Enable; resource.Redirect = definition.Redirect; resource.SupportsRss = definition.SupportsRss;