rem: var msgFolder = folderResource.QueryInterface(Components.interfaces.nsIMsgFolder); return msgFolder; 
add: try { var msgFolder = folderResource.QueryInterface(Components.interfaces.nsIMsgFolder); return msgFolder; } catch (ex) { dump(ex + "\n"); dump("we know about this.  see bug #35591\n"); } 
context: function GetLoadedMsgFolder(){	var loadedFolder = GetThreadTreeFolder();	var folderUri = loadedFolder.getAttribute("ref");	var folderResource = RDF.GetResource(folderUri);	if(folderResource)	{		var msgFolder = folderResource.QueryInterface(Components.interfaces.nsIMsgFolder);		return msgFolder;	}	return null;}
meta: 8395	/local1/tlutelli/issta_data/temp/all_js/javascript/2006_temp/2006/8395/26796affc93cd07de6b152ee6233ab408e151e47/msgMail3PaneWindow.js/buggy/mailnews/base/resources/content/msgMail3PaneWindow.js