mirror of
https://github.com/JustArchiNET/ArchiSteamFarm.git
synced 2026-01-06 17:10:13 +00:00
Fix ArgumentNullException in GetDigitalGiftCards() (#893)
This commit is contained in:
committed by
Łukasz Domeradzki
parent
4084f489d3
commit
a08cc48fcd
@@ -472,6 +472,10 @@ namespace ArchiSteamFarm {
|
||||
}
|
||||
|
||||
HtmlNodeCollection htmlNodes = response.DocumentNode.SelectNodes("//div[@class='pending_gift']/div[starts-with(@id, 'pending_gift_')][count(div[@class='pending_giftcard_leftcol']) > 0]/@id");
|
||||
if (htmlNodes == null) {
|
||||
return null;
|
||||
}
|
||||
|
||||
HashSet<ulong> results = new HashSet<ulong>();
|
||||
foreach (string gidText in htmlNodes.Select(node => node.GetAttributeValue("id", null))) {
|
||||
if (string.IsNullOrEmpty(gidText)) {
|
||||
|
||||
Reference in New Issue
Block a user