mirror of
https://github.com/sbrl/PolyFeed.git
synced 2024-11-24 06:43:01 +00:00
Bugfix: Don't assume that the hmtl element in question actually has a href / src
This commit is contained in:
parent
a060a10b55
commit
c179a77cc3
1 changed files with 1 additions and 1 deletions
|
@ -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(
|
||||
|
|
Loading…
Reference in a new issue