rem: for (var i = 0; i < numOfFilters; i++) { currentFilter = (myFilterList.getFilterAt(i)).filterName; if (filterName == currentFilter) 
add: if (myFilterList) { for (var i = 0; i < myFilterList.filterCount; i++) 
context: function isDuplicateFilterNameExists(){    var args = window.arguments[0];    var myFilterList = args.filterList;    var numOfFilters;    var filterName= gFilterNameElement.value;    var currentFilter;    var alreadyExists = false;	if (myFilterList) 	{		numOfFilters = myFilterList.filterCount;	} 	else 		return false;    for (var i = 0; i < numOfFilters; i++)    {        currentFilter = (myFilterList.getFilterAt(i)).filterName;        if (filterName == currentFilter)        {            alreadyExists = true;            break;        }    }    if (alreadyExists)        return true;    else        return false;}
meta: 5872	/local1/tlutelli/issta_data/temp/all_js/javascript/2006_temp/2006/5872/dc930d8dd902ecc45d4d69f8c446d3f1187a719e/FilterEditor.js/buggy/mailnews/base/search/resources/content/FilterEditor.js