rem: var selection = gFilterTree.selectedItems; if (!selection || selection.length <=0) 
add: if (gFilterTree.currentIndex == -1) 
context: function currentFilter(){    var selection = gFilterTree.selectedItems;    if (!selection || selection.length <=0)        return null;    var filter;    try {        var filterResource = rdf.GetUnicodeResource(selection[0].id);        filter = filterResource.GetDelegate("filter",                                            Components.interfaces.nsIMsgFilter);    } catch (ex) {        dump(ex);        dump("no filter selected!\n");    }    return filter;}
meta: 5872	/local1/tlutelli/issta_data/temp/all_js/javascript/2006_temp/2006/5872/d38a0937d9c93a0a9d913e2ac781e4328bb8cc73/FilterListDialog.js/buggy/mailnews/base/search/resources/content/FilterListDialog.js