Fix MangaDex linksNode is null
This commit is contained in:
parent
3d855020eb
commit
4692cc297a
@ -115,7 +115,7 @@ public class MangaDex : MangaConnector
|
|||||||
};
|
};
|
||||||
|
|
||||||
Dictionary<string, string> linksDict = new();
|
Dictionary<string, string> linksDict = new();
|
||||||
if (attributes.TryGetPropertyValue("links", out JsonNode? linksNode))
|
if (attributes.TryGetPropertyValue("links", out JsonNode? linksNode) && linksNode is not null)
|
||||||
foreach (KeyValuePair<string, JsonNode?> linkKv in linksNode!.AsObject())
|
foreach (KeyValuePair<string, JsonNode?> linkKv in linksNode!.AsObject())
|
||||||
linksDict.TryAdd(linkKv.Key, linkKv.Value.GetValue<string>());
|
linksDict.TryAdd(linkKv.Key, linkKv.Value.GetValue<string>());
|
||||||
|
|
||||||
|
Loading…
Reference in New Issue
Block a user