rem: return gDownloadView.contentView.getItemAtIndex(gDownloadView.currentIndex); 
add: if (gDownloadView.currentIndex != -1) return gDownloadView.contentView.getItemAtIndex(gDownloadView.currentIndex); return null; 
context: function getSelectedItem(){  return gDownloadView.contentView.getItemAtIndex(gDownloadView.currentIndex);}
meta: 10234	/local1/tlutelli/issta_data/temp/all_js/javascript/2006_temp/2006/10234/b0fa6129c2ccaab559c2004aaecafcb577783004/downloadmanager.js/buggy/xpfe/components/download-manager/resources/downloadmanager.js