Program: 38401
Project: 38401
Buggy source:
private void fillFx(LinearLayout listFilters,int buttonId){
  FilterFxRepresentation[] fxArray=new FilterFxRepresentation[18];
  int p=0;
  int[] drawid={R.drawable.filtershow_fx_0005_punch,R.drawable.filtershow_fx_0000_vintage,R.drawable.filtershow_fx_0004_bw_contrast,R.drawable.filtershow_fx_0002_bleach,R.drawable.filtershow_fx_0001_instant,R.drawable.filtershow_fx_0007_washout,R.drawable.filtershow_fx_0003_blue_crush,R.drawable.filtershow_fx_0008_washout_color,R.drawable.filtershow_fx_0006_x_process};
  int[] fxNameid={R.string.ffx_punch,R.string.ffx_vintage,R.string.ffx_bw_contrast,R.string.ffx_bleach,R.string.ffx_instant,R.string.ffx_washout,R.string.ffx_blue_crush,R.string.ffx_washout_color,R.string.ffx_x_process};
  BitmapFactory.Options o=new BitmapFactory.Options();
  o.inScaled=false;
  for (int i=0; i < drawid.length; i++) {
    Bitmap b=BitmapFactory.decodeResource(getResources(),drawid[i],o);
    FilterFxRepresentation fx=new FilterFxRepresentation(getString(fxNameid[i]),drawid[i],fxNameid[i]);
    fx.setFxBitmap(b);
    fxArray[p++]=fx;
  }
  ImageButton button=(ImageButton)findViewById(buttonId);
  FilterFxRepresentation nullFx=new FilterFxRepresentation(getString(R.string.none),0,R.string.none);
  mNullFxFilter=setupFilterRepresentationButton(nullFx,listFilters,button);
  mNullFxFilter.setSelected(true);
  Vector<FilterRepresentation> filtersRepresentations=new Vector<FilterRepresentation>();
  FiltersManager.getManager().addLooks(filtersRepresentations);
  for (  FilterRepresentation representation : filtersRepresentations) {
    setupFilterRepresentationButton(representation,listFilters,button);
  }
  for (int i=0; i < p; i++) {
    setupFilterRepresentationButton(fxArray[i],listFilters,button);
  }
}

Fixed version (ground truth):
private void fillFx(LinearLayout listFilters,int buttonId){
  FilterFxRepresentation[] fxArray=new FilterFxRepresentation[18];
  int p=0;
  int[] drawid={R.drawable.filtershow_fx_0005_punch,R.drawable.filtershow_fx_0000_vintage,R.drawable.filtershow_fx_0004_bw_contrast,R.drawable.filtershow_fx_0002_bleach,R.drawable.filtershow_fx_0001_instant,R.drawable.filtershow_fx_0007_washout,R.drawable.filtershow_fx_0003_blue_crush,R.drawable.filtershow_fx_0008_washout_color,R.drawable.filtershow_fx_0006_x_process};
  int[] fxNameid={R.string.ffx_punch,R.string.ffx_vintage,R.string.ffx_bw_contrast,R.string.ffx_bleach,R.string.ffx_instant,R.string.ffx_washout,R.string.ffx_blue_crush,R.string.ffx_washout_color,R.string.ffx_x_process};
  for (int i=0; i < drawid.length; i++) {
    FilterFxRepresentation fx=new FilterFxRepresentation(getString(fxNameid[i]),drawid[i],fxNameid[i]);
    fxArray[p++]=fx;
  }
  ImageButton button=(ImageButton)findViewById(buttonId);
  FilterFxRepresentation nullFx=new FilterFxRepresentation(getString(R.string.none),0,R.string.none);
  mNullFxFilter=setupFilterRepresentationButton(nullFx,listFilters,button);
  mNullFxFilter.setSelected(true);
  Vector<FilterRepresentation> filtersRepresentations=new Vector<FilterRepresentation>();
  FiltersManager.getManager().addLooks(filtersRepresentations);
  for (  FilterRepresentation representation : filtersRepresentations) {
    setupFilterRepresentationButton(representation,listFilters,button);
  }
  for (int i=0; i < p; i++) {
    setupFilterRepresentationButton(fxArray[i],listFilters,button);
  }
}