rem: element.setAttribute("tooltiptext", message); 
add: if (element) element.setAttribute("tooltiptext", message); 
context:   updateUnreadCount: function ()  {#ifdef XP_WIN    var shell = Components.classes["@mozilla.org/browser/shell-service;1"]                          .getService(Components.interfaces.nsIWindowsShellService);    var unreadCount = shell.unreadMailCount;    var message = gNavigatorBundle.getFormattedString("mailUnreadTooltip", [unreadCount]);    var element = document.getElementById("mail-button");    element.setAttribute("tooltiptext", message);                                                                  message = gNavigatorBundle.getFormattedString("mailUnreadMenuitem", [unreadCount]);    element = document.getElementById("readMailItem");    element.setAttribute("label", message);#endif  }
meta: 8395	/local1/tlutelli/issta_data/temp/all_js/javascript/2006_temp/2006/8395/746151d1d7a3d6d701a3c0c6c34a670b6586b4f1/browser.js/buggy/browser/base/content/browser.js