rem: var delim = nopreviewList[0]; nopreviewList = nopreviewList.split(delim); 
add: if (nopreviewList.length > 0) { var delim = nopreviewList[0]; nopreviewList = nopreviewList.split(delim); } 
context: function LoadNopreview(){  nopreviewList = signonviewer.GetNopreviewValue();  var delim = nopreviewList[0];  nopreviewList = nopreviewList.split(delim);  for(var i = 1; i < nopreviewList.length; i++)  {    var currSignon = TrimString(nopreviewList[i]);    // TEMP HACK until morse fixes signon viewer functions    currSignon = RemoveHTMLFormatting(currSignon);    AddItem("nopreviewlist",[currSignon],"nopreview_",i-1);  }  if (deleted_nopreviews_count >= nopreviewList.length) {    document.getElementById("removeAllNopreviews").setAttribute("disabled","true");  }}
meta: 9421	/local1/tlutelli/issta_data/temp/all_js/javascript/2006_temp/2006/9421/780f516d61da6ad6d5dc0a4e62f77d0a9bd28daa/SignonViewer.js/buggy/extensions/wallet/signonviewer/SignonViewer.js