Project: titanium
Issue TIMOB-16426: Android: App crashes after performing search on listView, scrolling down to the last row and deleting a row
Steps to reproduce : 1. Put the following code into app.js and run it {code} var win=Ti.UI.createWindow({	fullscreen:false }); var template={	childTemplates:[	{	type:'Ti.UI.Label',	bindId:'title'	}	] }; var items=[]; for(var k=0;k<500;k++){	items.push({	properties:{	searchableText:'Click to delete '+k	},	title:{text:'Click to delete '+k}	}); } var search=Ti.UI.createSearchBar(); var listView=Ti.UI.createListView({	templates:{template:template},	defaultItemTemplate:'template',	sections:[	Ti.UI.createListSection({	items:items	})	],	searchView:search }); listView.addEventListener('itemclick',function(e){	var index=e.itemIndex; Ti.API.info("Index" + index);	e.section.deleteItemsAt(index,1); }); win.add(listView); win.open(); {code} 2. Perform a random search by typing any text (eg. xyhwssj ) into the search bar. 3.Clear out the search bar completely. 4.Scroll down to the last bottom end. 5.Delete an item by clicking on any row/item. Description: After searching for an item on the `listView` and scrolling down to the bottom last end, if you try to delete an item, the app will always crashes. This bug is producible only on android and not on IOS. *However, the app will not crash if the listView has not reached the scroll end yet and you delete an item* but it will still crash on random occasion should you, after performing a search, tried to scroll down to the last bottom row even without deleting
Story points: 5