rem: try { var resource = tree.view.getResourceAtIndex(tree.currentIndex); 
add: var row = tree.currentIndex; if (row >= 0) { var resource = tree.view.getResourceAtIndex(row); 
context: function onselect_loadURI(tree) {    try {        var resource = tree.view.getResourceAtIndex(tree.currentIndex);	var link = tree.database.GetTarget(resource, NC_LINK, true);	if (link) {            link = link.QueryInterface(Components.interfaces.nsIRDFLiteral);            loadURI(link.Value);        }    } catch (e) {    }// when switching between tabs a spurious row number is returned.}
meta: 5872	/local1/tlutelli/issta_data/temp/all_js/javascript/2006_temp/2006/5872/685b0bb4cb5c3fb9add747b8c4f05bb40b317a51/help.js/clean/toolkit/components/help/content/help.js