Just hav a look at the stackoverflow link. I have pasted my whole code there. And yes, I can filter contacts everytime based on the text typed in the searchbox, without any errors. Only if there was no matches, the app crashes.