rem: if (gSearchInput.value) { 
add: if (gSearchInput && gSearchInput.value) { 
context: function SetStatusText(total){  if (!gStatusText)    gStatusText = document.getElementById('statusText');  try {    var statusText;    if (gSearchInput.value) {      if (total == 0)        statusText = gAddressBookBundle.getString("noMatchFound");      else      {        if (total == 1)          statusText = gAddressBookBundle.getString("matchFound");        else            statusText = gAddressBookBundle.getFormattedString("matchesFound", [total]);      }    }    else      statusText = gAddressBookBundle.getFormattedString("totalCardStatus", [gAbView.directory.dirName, total]);       gStatusText.setAttribute("label", statusText);  }  catch(ex) {    dump("failed to set status text:  " + ex + "\n");  }}
meta: 10234	/local1/tlutelli/issta_data/temp/all_js/javascript/2006_temp/2006/10234/4644dde57b7cf600597034f3356391c9882717cc/addressbook.js/buggy/mail/components/addrbook/content/addressbook.js