From 55ab125c80e8028b70757a7e6445248f0ad8d832 Mon Sep 17 00:00:00 2001 From: Pat Hartl Date: Fri, 17 Mar 2023 02:06:16 -0500 Subject: [PATCH] Avoid exception if the game doesn't exist in PCGamingWiki --- LANCommander.PCGamingWiki/PCGamingWikiClient.cs | 3 +++ 1 file changed, 3 insertions(+) diff --git a/LANCommander.PCGamingWiki/PCGamingWikiClient.cs b/LANCommander.PCGamingWiki/PCGamingWikiClient.cs index 24644df..63181c5 100644 --- a/LANCommander.PCGamingWiki/PCGamingWikiClient.cs +++ b/LANCommander.PCGamingWiki/PCGamingWikiClient.cs @@ -48,6 +48,9 @@ namespace LANCommander.PCGamingWiki { var results = new Dictionary(); + if (url == null) + return results; + HtmlWeb web = new HtmlWeb(); HtmlDocument dom = web.Load(url);