diff --git a/Tranga/MangaConnectors/MangaDex.cs b/Tranga/MangaConnectors/MangaDex.cs index 69a4385..7d13ae6 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());