rem: if (headerEntry != undefined && headerEntry) 
add: if (headerEntry) 
context: function UpdateMessageHeaders(){  // iterate over each header we received and see if we have a matching entry in each  // header view table...  for (headerName in currentHeaderData)  {    var headerField = currentHeaderData[headerName];    var headerEntry;    if (headerName == "subject")    {      try {        if (gDBView.keyForFirstSelectedMessage == nsMsgKey_None)        {          var folder = null;          if (gCurrentFolderUri)            folder = RDF.GetResource(gCurrentFolderUri).QueryInterface(Components.interfaces.nsIMsgFolder);          setTitleFromFolder(folder, headerField.headerValue);        }      } catch (ex) {}    }        if (gCollapsedHeaderViewMode && !gBuiltCollapsedView)    {       headerEntry = gCollapsedHeaderView[headerName];      if (headerEntry != undefined && headerEntry)      {          headerEntry.outputFunction(headerEntry, headerField.headerValue);        headerEntry.valid = true;          }    }    else if (!gCollapsedHeaderViewMode && !gBuiltExpandedView)    {      headerEntry = gExpandedHeaderView[headerName];      if (headerEntry == undefined && gViewAllHeaders)      {        // for view all headers, if we don't have a header field for this value....cheat and create one....then        // fill in a headerEntry        gExpandedHeaderView[headerName] = new createNewHeaderView(headerName);        headerEntry = gExpandedHeaderView[headerName];      }      if (headerEntry != undefined && headerEntry)      {        headerEntry.outputFunction(headerEntry, headerField.headerValue);        headerEntry.valid = true;      }    } // if we are in expanded view....  }  if (gCollapsedHeaderViewMode)   gBuiltCollapsedView = true;  else   gBuiltExpandedView = true;  // now update the view to make sure the right elements are visible  updateHeaderViews();    if (this.FinishEmailProcessing != undefined)    FinishEmailProcessing();}
meta: 9421	/local1/tlutelli/issta_data/temp/all_js/javascript/2006_temp/2006/9421/1ff9eda74247dd5c33fd929eccda865d79253c99/msgHdrViewOverlay.js/buggy/mail/base/content/msgHdrViewOverlay.js