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