Bugfix: Don't assume that the hmtl element in question actually has a href / src

This commit is contained in:
Starbeamrainbowlabs 2019-08-05 00:22:28 +01:00
parent a060a10b55
commit c179a77cc3
Signed by: sbrl
GPG Key ID: 1BE5172E637709C2
1 changed files with 1 additions and 1 deletions

View File

@ -48,7 +48,7 @@ namespace PolyFeed.Helpers
if (node.Attributes["href"] != null) attributeName = "href";
if (node.Attributes["src"] != null) attributeName = "src";
if (node.Attributes[attributeName] == null)
if (attributeName == null || node.Attributes[attributeName] == null)
return;
node.Attributes[attributeName].Value = new Uri(