mirror of
https://github.com/Prowlarr/Prowlarr
synced 2025-12-06 08:34:28 +01:00
Fixed: Nullref on Cardigann without login test
This commit is contained in:
parent
b74c46c554
commit
2ed51cd933
1 changed files with 1 additions and 1 deletions
|
|
@ -969,7 +969,7 @@ public bool CheckIfLoginIsNeeded(HttpResponse response)
|
|||
}
|
||||
|
||||
// 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);
|
||||
|
|
|
|||
Loading…
Reference in a new issue