1
0
Fork 0
mirror of https://github.com/sbrl/PolyFeed.git synced 2024-12-24 10:45:02 +00:00

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

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(