rem: var selArray = tree.getElementsByAttribute('selected', 'true'); if ( selArray && selArray.length ) { top.addressbook.DeleteAddressBooks(tree.database, tree, selArray); } 
add:  if ( tree && tree.selectedItems && tree.selectedItems.length ) top.addressbook.DeleteAddressBooks(tree.database, tree, tree.selectedItems); 
context: function AbDeleteDirectory(){	dump("\AbDeleteDirectory from XUL\n");	var tree = document.getElementById('dirTree');	var selArray = tree.getElementsByAttribute('selected', 'true');	if ( selArray && selArray.length )	{		top.addressbook.DeleteAddressBooks(tree.database, tree, selArray);	}}
meta: 8395	/local1/tlutelli/issta_data/temp/all_js/javascript/2006_temp/2006/8395/c8e44cb267df44e5d410235a9945f567d0c78080/addressbook.js/buggy/mailnews/addrbook/resources/content/addressbook.js