rem: if (tree) 
add: if (tree && tree.selectedItems && tree.selectedItems[0] && tree.selectedItems[0].firstChild && tree.selectedItems[0].firstChild.firstChild) { 
context: function GetSelectedTreelistAttribute(tree, attr){  if (tree)    return tree.selectedItems[0].firstChild.firstChild.getAttribute(attr);  return "";}
meta: 9421	/local1/tlutelli/issta_data/temp/all_js/javascript/2006_temp/2006/9421/5e38e89e712743aaf0fe0ede8a0f885098acc7de/EdDialogCommon.js/buggy/editor/ui/dialogs/content/EdDialogCommon.js