ArrayIndexOutOfBoundsException with ArrayAdapter with filter

view story

http://stackoverflow.com – I am getting an ArrayIndexOutOfBoundsException with the given below custom implementation of an ArrayAdapter with filtering enabled. I see the filtering code returning the correct resultset, but when view is rendered after filtering, I get an exception. What am I doing wrong here. Any help is appreaciated. import java.util.ArrayList; import java.util.List; import android.app.Activity; import android.view.LayoutInflater; import android.view.View; import android.view.ViewGroup; import android.widget.ArrayAdapter; import android.widget.Filter; import android.widget.ImageView; import android.wi (HowTos)