Buggy code:
public class ContactsFragment extends Fragment { private static final String TAG = "Contacts" ; RelativeLayout layout ; ArrayList < String > peopleList ; Set < String > iCanSee ; Set < String > canSeeMe ; private HashMap < String , String > mapping ; private HashMap < String , Long > timestamps ; private AQuery aq ; private static Boolean cancelAsynTasks = false ; private Context context ; private AvatarLoader avatarLoader ; public ContactsFragment ( ) { } @ Override public View onCreateView ( LayoutInflater inflater , ViewGroup container , Bundle savedInstanceState ) { } private void getPeopleThatCanSeeMe ( ) { } private void setListAdapter ( ) { ArrayAdapter < String > adapter = new ArrayAdapter < String > ( context , R . layout . people_row_layout , peopleList ) { ContactsFragment . ViewHolder holder ; @ Override public View getView ( int position , View convertView , ViewGroup parent ) { if ( convertView == null ) { convertView = getActivity ( ) . getLayoutInflater ( ) . inflate ( people_row_layout , null ) ; holder = new ContactsFragment . ViewHolder ( ) ; holder . name = ( ( TextView ) ( convertView . findViewById ( contact_name ) ) ) ; holder . email = ( ( TextView ) ( convertView . findViewById ( contact_email ) ) ) ; holder . lastReport = ( ( TextView ) ( convertView . findViewById ( last_report ) ) ) ; holder . photo = ( ( ImageView ) ( convertView . findViewById ( contact_photo ) ) ) ; holder . checkICanSee = ( ( CheckBox ) ( convertView . findViewById ( i_can_see ) ) ) ; holder . checkCanSeeMe = ( ( CheckBox ) ( convertView . findViewById ( can_see_me ) ) ) ; convertView . setTag ( holder ) ; } else { holder = ( ( ContactsFragment . ViewHolder ) ( convertView . getTag ( ) ) ) ; } String contactName = getItem ( position ) ; String email = mapping . get ( contactName ) ; AQuery aq = new AQuery ( convertView ) ; aq . id ( holder . name ) . text ( contactName ) ; aq . id ( holder . email ) . text ( email ) ; avatarLoader . load ( email , holder . photo ) ; aq . id ( holder . lastReport ) . text ( Utils . timestampText ( timestamps . get ( contactName ) ) ) ; aq . id ( holder . checkCanSeeMe ) . checked ( canSeeMe . contains ( email ) ) . tag ( email ) ; aq . id ( holder . checkICanSee ) . tag ( email ) ; if ( ( MainApplication . iDontWantToSee ) != null ) { aq . id ( holder . checkICanSee ) . checked ( ( ! ( iDontWantToSee . has ( email ) ) ) ) ; aq . id ( holder . photo ) . clickable ( ( ( ! ( iDontWantToSee . has ( email ) ) ) && ( iCanSee . contains ( email ) ) ) ) ; } else { aq . id ( holder . photo ) . clickable ( iCanSee . contains ( email ) ) ; aq . id ( holder . checkICanSee ) . checked ( iCanSee . contains ( email ) ) . clickable ( iCanSee . contains ( email ) ) ; } holder . position = position ; if ( ! ( iCanSee . contains ( email ) ) ) aq . id ( holder . checkICanSee ) . invisible ( ) ; else aq . id ( holder . checkICanSee ) . visible ( ) ; return convertView ; } } ; aq . id ( headers ) . visibility ( VISIBLE ) ; <START_BUG> aq . id ( R . id . add_contacts_list_view ) . adapter ( adapter ) ; <END_BUG> } static class ViewHolder { TextView name ; TextView email ; TextView lastReport ; ImageView photo ; CheckBox checkICanSee ; CheckBox checkCanSeeMe ; int position ; } class GetPeopleThatCanSeeMe extends AsyncTask < Void , Void , Void > { @ Override protected Void doInBackground ( Void ... params ) { } @ Override protected void onPostExecute ( Void aVoid ) { } } }

Fix:
aq . id ( R . id . contacts_list_view ) . adapter ( adapter ) ;