rem: if (bucketTree) return (MessageHasAttachments() && bucketTree.selectedItems.length); 
add: if (bucketList) return (MessageHasAttachments() && bucketList.selectedItems && bucketList.selectedItems.length); 
context: function MessageHasSelectedAttachments(){  var bucketTree = document.getElementById("attachmentBucket");  if (bucketTree)    return (MessageHasAttachments() && bucketTree.selectedItems.length);  return false;}
meta: 5872	/local1/tlutelli/issta_data/temp/all_js/javascript/2006_temp/2006/5872/d38a0937d9c93a0a9d913e2ac781e4328bb8cc73/MsgComposeCommands.js/clean/mailnews/compose/resources/content/MsgComposeCommands.js