rem: return msgFolder; 
add: if (msgFolder && (msgFolder.parent || msgFolder.isServer)) return msgFolder; else return null; 
context: function GetMsgFolderFromResource(folderResource){  if (!folderResource)     return null;  var msgFolder = folderResource.QueryInterface(Components.interfaces.nsIMsgFolder);  return msgFolder;}
meta: 10234	/local1/tlutelli/issta_data/temp/all_js/javascript/2006_temp/2006/10234/7c1966ad79e98e6dddfdf58460d6a6bf97ab47c1/commandglue.js/buggy/mailnews/base/resources/content/commandglue.js