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: 9421	/local1/tlutelli/issta_data/temp/all_js/javascript/2006_temp/2006/9421/199f495389b7e1c2c15223f04fb8747aaf8ad608/addressbook.js/clean/mail/components/addrbook/content/addressbook.js