From 4692cc297a3b0642864e110b55f66745b82d41a5 Mon Sep 17 00:00:00 2001 From: Glax Date: Fri, 26 Apr 2024 00:48:55 +0200 Subject: [PATCH] Fix MangaDex linksNode is null --- Tranga/MangaConnectors/MangaDex.cs | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/Tranga/MangaConnectors/MangaDex.cs b/Tranga/MangaConnectors/MangaDex.cs index 6bcf22f..7b3766a 100644 --- a/Tranga/MangaConnectors/MangaDex.cs +++ b/Tranga/MangaConnectors/MangaDex.cs @@ -115,7 +115,7 @@ public class MangaDex : MangaConnector }; Dictionary linksDict = new(); - if (attributes.TryGetPropertyValue("links", out JsonNode? linksNode)) + if (attributes.TryGetPropertyValue("links", out JsonNode? linksNode) && linksNode is not null) foreach (KeyValuePair linkKv in linksNode!.AsObject()) linksDict.TryAdd(linkKv.Key, linkKv.Value.GetValue());