Fixed: Nullref on Cardigann without login test

This commit is contained in:
Qstick
2022-10-30 18:06:19 -05:00
parent b74c46c554
commit 2ed51cd933

View File

@@ -969,7 +969,7 @@ namespace NzbDrone.Core.Indexers.Cardigann
}
// Only run html test selector on html responses
if (_definition.Login.Test.Selector != null && (response.Headers.ContentType?.Contains("text/html") ?? true))
if (_definition.Login.Test?.Selector != null && (response.Headers.ContentType?.Contains("text/html") ?? true))
{
var parser = new HtmlParser();
var document = parser.ParseDocument(response.Content);