Bug 1326210 - Noticed in Bug 1265881 Error: TypeError: temp is null Source File: chrome://global/content/bindings/preferences.xml Line: 1227 r=Mossop

This commit is contained in:
Philip Chee 2016-12-31 04:50:26 +08:00
parent 8684b280b7
commit 2038d42f75

View File

@ -1256,7 +1256,8 @@
while (temp && temp.nodeType == Node.ELEMENT_NODE &&
!temp.hasAttribute("preference"))
temp = temp.parentNode;
return temp.nodeType == Node.ELEMENT_NODE ? temp : aStartElement;
return temp && temp.nodeType == Node.ELEMENT_NODE ?
temp : aStartElement;
]]>
</body>
</method>