Bug 604352 - JavaScript error: browser-ui.js, line 2677: req.responseXML is null [r=mbrubeck]

This commit is contained in:
Mark Finkle 2010-10-15 08:40:29 -04:00
parent 6eb808e3df
commit 402949ada7

View File

@ -2674,7 +2674,7 @@ var BadgeHandlers = {
req.open("GET", "https://mail.google.com/mail/feed/atom", true, login.username, login.password);
req.onreadystatechange = function(aEvent) {
if (req.readyState == 4) {
if (req.status == 200) {
if (req.status == 200 && req.responseXML) {
let count = req.responseXML.getElementsByTagName("fullcount");
this._lastCount = count ? count[0].childNodes[0].nodeValue : 0;
} else {