rem: headerEntry = gExpandedHeaderView[headerName]; 
add: headerEntry = gExpandedHeaderView[headerName]; 
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 = null;    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)    {       if (headerName in gCollapsedHeaderView)      headerEntry = gCollapsedHeaderView[headerName];    }    else if (!gCollapsedHeaderViewMode && !gBuiltExpandedView)    {      if (headerName in gExpandedHeaderView)      headerEntry = gExpandedHeaderView[headerName];      if (!headerEntry && 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 we are in expanded view....    if (headerEntry)      {        headerEntry.outputFunction(headerEntry, headerField.headerValue);        headerEntry.valid = true;      }  }  if (gCollapsedHeaderViewMode)   gBuiltCollapsedView = true;  else   gBuiltExpandedView = true;  // now update the view to make sure the right elements are visible  updateHeaderViews();    if ("FinishEmailProcessing" in this)    FinishEmailProcessing();}
meta: 9421	/local1/tlutelli/issta_data/temp/all_js/javascript/2006_temp/2006/9421/0957df546aedae4a0a0ac9c8f4d079f4e20ff9f1/msgHdrViewOverlay.js/buggy/mail/base/content/msgHdrViewOverlay.js