Program: 187736
Project: 187736
Buggy source:
/** 
 * @param parentFile The parentFile, so we can obtain the full path of the bitmap
 * @param fileName The name of the file, also the text in the list item.
 * @return The resized and resampled bitmap, if can not be decoded it returns null.
 */
private Bitmap decodeFile(String parentFile,String fileName){
  if (!cancel) {
    try {
      BitmapFactory.Options options=new BitmapFactory.Options();
      options.inJustDecodeBounds=true;
      options.outWidth=0;
      options.outHeight=0;
      options.inSampleSize=1;
      String filePath=FileUtils.getFile(parentFile,fileName).getPath();
      BitmapFactory.decodeFile(filePath,options);
      if (options.outWidth > 0 && options.outHeight > 0) {
        if (!cancel) {
          int widthFactor=(options.outWidth + thumbnailWidth - 1) / thumbnailWidth;
          int heightFactor=(options.outHeight + thumbnailHeight - 1) / thumbnailHeight;
          widthFactor=Math.max(widthFactor,heightFactor);
          widthFactor=Math.max(widthFactor,1);
          if (widthFactor > 1) {
            if ((widthFactor & (widthFactor - 1)) != 0) {
              while ((widthFactor & (widthFactor - 1)) != 0) {
                widthFactor&=widthFactor - 1;
              }
              widthFactor<<=1;
            }
          }
          options.inSampleSize=widthFactor;
          options.inJustDecodeBounds=false;
          Bitmap bitmap=BitmapFactory.decodeFile(filePath,options);
          if (bitmap != null) {
            return bitmap;
          }
        }
      }
 else {
        if (!mBlacklist.contains(fileName)) {
          mBlacklist.add(fileName);
        }
      }
    }
 catch (    Exception e) {
    }
  }
  return null;
}

Fixed version (ground truth):
/** 
 * @param parentFile The parentFile, so we can obtain the full path of the bitmap
 * @param fileName The name of the file, also the text in the list item.
 * @return The resized and resampled bitmap, if can not be decoded it returns null.
 */
private Bitmap decodeFile(String parentFile,String fileName){
  if (!cancel) {
    try {
      BitmapFactory.Options options=new BitmapFactory.Options();
      options.inJustDecodeBounds=true;
      options.outWidth=0;
      options.outHeight=0;
      options.inSampleSize=1;
      String filePath=FileUtils.getFile(parentFile,fileName).getPath();
      BitmapFactory.decodeFile(filePath,options);
      if (options.outWidth > 0 && options.outHeight > 0) {
        if (!cancel) {
          int widthFactor=(options.outWidth + thumbnailWidth - 1) / thumbnailWidth;
          int heightFactor=(options.outHeight + thumbnailHeight - 1) / thumbnailHeight;
          widthFactor=Math.max(widthFactor,heightFactor);
          widthFactor=Math.max(widthFactor,1);
          if (widthFactor > 1) {
            if ((widthFactor & (widthFactor - 1)) != 0) {
              while ((widthFactor & (widthFactor - 1)) != 0) {
                widthFactor&=widthFactor - 1;
              }
              widthFactor<<=1;
            }
          }
          options.inSampleSize=widthFactor;
          options.inJustDecodeBounds=false;
          Bitmap bitmap=ImageUtils.resizeBitmap(BitmapFactory.decodeFile(filePath,options),72,72);
          if (bitmap != null) {
            return bitmap;
          }
        }
      }
 else {
        if (!mBlacklist.contains(fileName)) {
          mBlacklist.add(fileName);
        }
      }
    }
 catch (    Exception e) {
    }
  }
  return null;
}