rem: dd ("getParentIndex: row " + index + " returning " + rv); return rv; */ return row.parentRecord.calculateVisualRow(); 
add:  return (rv != null) ? rv : -1; 
context: function tov_getpi (index){    var row = this.childData.locateChildByVisualRow (index);    /*    ASSERT(row, "bogus row " + index);    var rv = row.parentRecord.calculateVisualRow();    dd ("getParentIndex: row " + index + " returning " + rv);    return rv;    */    return row.parentRecord.calculateVisualRow();}
meta: 10234	/local1/tlutelli/issta_data/temp/all_js/javascript/2006_temp/2006/10234/b99d7ba3f2da01b06495d2b64051591e5c21df4f/tree-utils.js/buggy/extensions/cview/resources/content/tree-utils.js