rem: var folderTree = GetFolderTree(); if (folderTree) 
add: var folderOutliner = GetFolderOutliner(); if (folderOutliner) 
context: function RenameFolder(name,uri){    dump("uri,name = " + uri + "," + name + "\n");    var folderTree = GetFolderTree();    if (folderTree)    {	if (uri && (uri != "") && name && (name != "")) {                var selectedFolder = GetResourceFromUri(uri);                try                {                    messenger.RenameFolder(GetFolderDatasource(), selectedFolder, name);                }                catch(e)                {                    throw(e); // so that the dialog does not automatically close                    dump ("Exception : RenameFolder \n");                }                ClearThreadPane();                ClearMessagePane();                folderTree.clearItemSelection();        }        else {                dump("no name or nothing selected\n");        }       }    else {	dump("no folder tree\n");    }}
meta: 10234	/local1/tlutelli/issta_data/temp/all_js/javascript/2006_temp/2006/10234/1e0e99191d9d4f4f04fb4061b0ba91f347b8986f/widgetglue.js/buggy/mailnews/base/resources/content/widgetglue.js