Program: 157497
Project: 157497
Buggy source:
@Override public View getView(int position,View convertView,ViewGroup parent){
  final AddOn addOn=getItem(position);
  LayoutInflater inflator=(LayoutInflater)getContext().getSystemService(Service.LAYOUT_INFLATER_SERVICE);
  View row=inflator.inflate(R.layout.addon_list_item_pref,parent,false);
  row.setTag(addOn);
  row.setOnClickListener(this);
  TextView title=(TextView)row.findViewById(R.id.addon_title);
  title.setText(addOn.getName());
  TextView description=(TextView)row.findViewById(R.id.addon_description);
  description.setText(addOn.getDescription());
  Drawable icon=null;
  if (addOn instanceof IconHolder) {
    IconHolder iconHolder=(IconHolder)addOn;
    icon=iconHolder.getIcon();
  }
  if (icon == null) {
    try {
      PackageManager packageManager=getContext().getPackageManager();
      PackageInfo packageInfo=packageManager.getPackageInfo(addOn.getPackageContext().getPackageName(),0);
      icon=packageInfo.applicationInfo.loadIcon(packageManager);
    }
 catch (    PackageManager.NameNotFoundException e) {
      icon=null;
    }
  }
  ImageView addOnIcon=(ImageView)row.findViewById(R.id.addon_image);
  addOnIcon.setImageDrawable(icon);
  if (addOn instanceof ScreenshotHolder) {
    if (((ScreenshotHolder)addOn).hasScreenshot()) {
      addOnIcon.setOnClickListener(this);
      addOnIcon.setTag(addOn);
      row.findViewById(R.id.addon_image_more_overlay).setVisibility(View.VISIBLE);
    }
  }
  RadioButton tb=(RadioButton)row.findViewById(R.id.addon_checkbox);
  tb.setClickable(false);
  tb.setChecked(addOn.getId() == mSelectedAddOn.getId());
  return row;
}

Fixed version (ground truth):
@Override public View getView(int position,View convertView,ViewGroup parent){
  final AddOn addOn=getItem(position);
  LayoutInflater inflator=(LayoutInflater)getContext().getSystemService(Service.LAYOUT_INFLATER_SERVICE);
  View row=inflator.inflate(R.layout.addon_list_item_pref,parent,false);
  row.setTag(addOn);
  row.setOnClickListener(this);
  TextView title=(TextView)row.findViewById(R.id.addon_title);
  title.setText(addOn.getName());
  TextView description=(TextView)row.findViewById(R.id.addon_description);
  description.setText(addOn.getDescription());
  Drawable icon=null;
  if (addOn instanceof IconHolder) {
    IconHolder iconHolder=(IconHolder)addOn;
    icon=iconHolder.getIcon();
  }
  if (icon == null) {
    try {
      PackageManager packageManager=getContext().getPackageManager();
      PackageInfo packageInfo=packageManager.getPackageInfo(addOn.getPackageName(),0);
      icon=packageInfo.applicationInfo.loadIcon(packageManager);
    }
 catch (    PackageManager.NameNotFoundException e) {
      icon=null;
    }
  }
  ImageView addOnIcon=(ImageView)row.findViewById(R.id.addon_image);
  addOnIcon.setImageDrawable(icon);
  if (addOn instanceof ScreenshotHolder) {
    if (((ScreenshotHolder)addOn).hasScreenshot()) {
      addOnIcon.setOnClickListener(this);
      addOnIcon.setTag(addOn);
      row.findViewById(R.id.addon_image_more_overlay).setVisibility(View.VISIBLE);
    }
  }
  RadioButton tb=(RadioButton)row.findViewById(R.id.addon_checkbox);
  tb.setClickable(false);
  tb.setChecked(addOn.getId() == mSelectedAddOn.getId());
  return row;
}