rem: from      : { address: jabberAddress }})[0].stanza || <presence from={jabberAddress} type="unavailable"/> 
add: from      : { address: jabberAddress }})[0] || { stanza: <presence from={jabberAddress} type="unavailable"/> }; 
context: function onJabberEndHeaders() {    const Cc = Components.classes;    const Ci = Components.interfaces;    function getCard(primaryEmail) {        var uri = 'moz-abmdbdirectory://abook.mab';        var addressBook = Cc['@mozilla.org/addressbook;1'].getService(Ci.nsIAddressBook);        var abDatabase = addressBook.getAbDatabaseFromURI(uri);        var rdf = Cc['@mozilla.org/rdf/rdf-service;1'].getService(Ci.nsIRDFService);        var abDirectory = rdf.GetResource(uri).QueryInterface(Ci.nsIAbDirectory);        return abDatabase.getCardFromAttribute(abDirectory, 'PrimaryEmail', primaryEmail, true);    }    var m = currentHeaderData.from.headerValue.match(/^([^ ]+)/)    var mailAddress = m[1];    var card = getCard(mailAddress);    if(card && card.aimScreenName) {        var jabberAddress = card.aimScreenName;        var xulPresenceField = document.getElementById('expandedPresence');        xulPresenceField.emailAddressNode.setAttribute('label', card.aimScreenName);        xulPresenceField.collapsed = false;        var presenceStanza =            XMPP.cache.fetch({                event     :'presence',                direction : 'in',                from      : { address: jabberAddress }})[0].stanza ||            <presence from={jabberAddress} type="unavailable"/>        xulPresenceField.setAttribute('availability',                                      presenceStanza.@type.toString() || 'available');        xulPresenceField.setAttribute('show',                                      presenceStanza.show.toString());    }}
meta: 1705	/local1/tlutelli/issta_data/temp/all_js/javascript/2007_temp/2007/1705/4233e10836bc4f3831e8b410e5c6ba7d8098b61d/overlay_mail.js/buggy/chrome/content/overlay_mail.js