add:  if (!aDownload) return;  
context: function removeFromView(aDownload){  let index = gDownloadsView.selectedIndex;  gDownloadsView.removeChild(aDownload);  gDownloadsView.selectedIndex = Math.min(index, gDownloadsView.itemCount - 1);}
meta: 9421	/local1/tlutelli/issta_data/temp/all_js/javascript/2007_temp/2007/9421/2a4be67165a0587752d664efa8370f3cce6832e9/downloads.js/buggy/toolkit/mozapps/downloads/content/downloads.js