Commit a45ebecc authored by Raine Makelainen's avatar Raine Makelainen

[embedlite-components] Don't access null element on _getLinkURI. Contributes to JB#36016

parent bc5d44e5
......@@ -612,7 +612,7 @@ EmbedHelper.prototype = {
},
_getLinkURI: function(aElement) {
if (aElement.nodeType == Ci.nsIDOMNode.ELEMENT_NODE &&
if (aElement && aElement.nodeType == Ci.nsIDOMNode.ELEMENT_NODE &&
((aElement instanceof Ci.nsIDOMHTMLAnchorElement && aElement.href) ||
(aElement instanceof Ci.nsIDOMHTMLAreaElement && aElement.href))) {
try {
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment