Skip to content

Commit

Permalink
Fix ManaCrystals Import Issue (#3057)
Browse files Browse the repository at this point in the history
Fix issue where could not import from ManaCrystals if either the neutral or the class cards sections are null.
  • Loading branch information
Gamic authored and azeier committed Jan 2, 2017
1 parent 1c22dda commit 80857f7
Showing 1 changed file with 4 additions and 0 deletions.
4 changes: 4 additions & 0 deletions Hearthstone Deck Tracker/Importing/Websites/Manacrystals.cs
Expand Up @@ -58,6 +58,10 @@ public static async Task<Deck> Import(string url)
private static void CardNodes(HtmlNode node, Deck deck)
{
var cardNodes = node.SelectNodes(".//ul/li");
if (cardNodes == null)
{
return;
}
foreach (var cardNode in cardNodes)
{
var count = HttpUtility.HtmlDecode(
Expand Down

0 comments on commit 80857f7

Please sign in to comment.