Program: 14189
Project: 14189
Buggy source:
/** 
 * Instantiate a new Blog object from it's local id
 * @param localId local blog id
 * @return a new Blog instance or null if the localId was not found
 */
public Blog instantiateBlogByLocalId(int localId){
  String[] fields=new String[]{"String_Node_Str","String_Node_Str","String_Node_Str","String_Node_Str","String_Node_Str","String_Node_Str","String_Node_Str","String_Node_Str","String_Node_Str","String_Node_Str","String_Node_Str","String_Node_Str","String_Node_Str","String_Node_Str","String_Node_Str","String_Node_Str","String_Node_Str","String_Node_Str","String_Node_Str","String_Node_Str","String_Node_Str","String_Node_Str","String_Node_Str","String_Node_Str","String_Node_Str"};
  Cursor c=db.query(BLOGS_TABLE,fields,"String_Node_Str",new String[]{Integer.toString(localId)},null,null,null);
  Blog blog=null;
  if (c.moveToFirst()) {
    if (c.getString(0) != null) {
      blog=new Blog();
      blog.setLocalTableBlogId(localId);
      blog.setUrl(c.getString(c.getColumnIndex("String_Node_Str")));
      blog.setBlogName(c.getString(c.getColumnIndex("String_Node_Str")));
      blog.setUsername(c.getString(c.getColumnIndex("String_Node_Str")));
      blog.setPassword(decryptPassword(c.getString(c.getColumnIndex("String_Node_Str"))));
      if (c.getString(c.getColumnIndex("String_Node_Str")) == null) {
        blog.setHttpuser("String_Node_Str");
      }
 else {
        blog.setHttpuser(c.getString(c.getColumnIndex("String_Node_Str")));
      }
      if (c.getString(c.getColumnIndex("String_Node_Str")) == null) {
        blog.setHttppassword("String_Node_Str");
      }
 else {
        blog.setHttppassword(decryptPassword(c.getString(c.getColumnIndex("String_Node_Str"))));
      }
      blog.setImagePlacement(c.getString(c.getColumnIndex("String_Node_Str")));
      blog.setFeaturedImageCapable(c.getInt(c.getColumnIndex("String_Node_Str")) > 0);
      blog.setFullSizeImage(c.getInt(c.getColumnIndex("String_Node_Str")) > 0);
      blog.setMaxImageWidth(c.getString(c.getColumnIndex("String_Node_Str")));
      blog.setMaxImageWidthId(c.getInt(c.getColumnIndex("String_Node_Str")));
      blog.setRemoteBlogId(c.getInt(c.getColumnIndex("String_Node_Str")));
      blog.setDotcomFlag(c.getInt(c.getColumnIndex("String_Node_Str")) > 0);
      if (c.getString(c.getColumnIndex("String_Node_Str")) != null) {
        blog.setDotcom_username(c.getString(c.getColumnIndex("String_Node_Str")));
      }
      if (c.getString(c.getColumnIndex("String_Node_Str")) != null) {
        blog.setDotcom_password(decryptPassword(c.getString(c.getColumnIndex("String_Node_Str"))));
      }
      if (c.getString(c.getColumnIndex("String_Node_Str")) != null) {
        blog.setApi_key(c.getString(c.getColumnIndex("String_Node_Str")));
      }
      if (c.getString(c.getColumnIndex("String_Node_Str")) != null) {
        blog.setApi_blogid(c.getString(c.getColumnIndex("String_Node_Str")));
      }
      if (c.getString(c.getColumnIndex("String_Node_Str")) != null) {
        blog.setWpVersion(c.getString(c.getColumnIndex("String_Node_Str")));
      }
      blog.setPostFormats(c.getString(c.getColumnIndex("String_Node_Str")));
      blog.setScaledImage(c.getInt(c.getColumnIndex("String_Node_Str")) > 0);
      blog.setScaledImageWidth(c.getInt(c.getColumnIndex("String_Node_Str")));
      blog.setHomeURL(c.getString(c.getColumnIndex("String_Node_Str")));
      if (c.getString(c.getColumnIndex("String_Node_Str")) == null) {
        blog.setBlogOptions("String_Node_Str");
      }
 else {
        blog.setBlogOptions(c.getString(c.getColumnIndex("String_Node_Str")));
      }
      blog.setAdmin(c.getInt(c.getColumnIndex("String_Node_Str")) > 0);
      blog.setHidden(c.getInt(c.getColumnIndex("String_Node_Str")) > 0);
    }
  }
  c.close();
  return blog;
}

Fixed version (ground truth):
/** 
 * Instantiate a new Blog object from it's local id
 * @param localId local blog id
 * @return a new Blog instance or null if the localId was not found
 */
public Blog instantiateBlogByLocalId(int localId){
  String[] fields=new String[]{"String_Node_Str","String_Node_Str","String_Node_Str","String_Node_Str","String_Node_Str","String_Node_Str","String_Node_Str","String_Node_Str","String_Node_Str","String_Node_Str","String_Node_Str","String_Node_Str","String_Node_Str","String_Node_Str","String_Node_Str","String_Node_Str","String_Node_Str","String_Node_Str","String_Node_Str","String_Node_Str","String_Node_Str","String_Node_Str","String_Node_Str","String_Node_Str","String_Node_Str","String_Node_Str"};
  Cursor c=db.query(BLOGS_TABLE,fields,"String_Node_Str",new String[]{Integer.toString(localId)},null,null,null);
  Blog blog=null;
  if (c.moveToFirst()) {
    if (c.getString(0) != null) {
      blog=new Blog();
      blog.setLocalTableBlogId(localId);
      blog.setUrl(c.getString(c.getColumnIndex("String_Node_Str")));
      blog.setBlogName(c.getString(c.getColumnIndex("String_Node_Str")));
      blog.setUsername(c.getString(c.getColumnIndex("String_Node_Str")));
      blog.setPassword(decryptPassword(c.getString(c.getColumnIndex("String_Node_Str"))));
      if (c.getString(c.getColumnIndex("String_Node_Str")) == null) {
        blog.setHttpuser("String_Node_Str");
      }
 else {
        blog.setHttpuser(c.getString(c.getColumnIndex("String_Node_Str")));
      }
      if (c.getString(c.getColumnIndex("String_Node_Str")) == null) {
        blog.setHttppassword("String_Node_Str");
      }
 else {
        blog.setHttppassword(decryptPassword(c.getString(c.getColumnIndex("String_Node_Str"))));
      }
      blog.setImagePlacement(c.getString(c.getColumnIndex("String_Node_Str")));
      blog.setFeaturedImageCapable(c.getInt(c.getColumnIndex("String_Node_Str")) > 0);
      blog.setFullSizeImage(c.getInt(c.getColumnIndex("String_Node_Str")) > 0);
      blog.setMaxImageWidth(c.getString(c.getColumnIndex("String_Node_Str")));
      blog.setMaxImageWidthId(c.getInt(c.getColumnIndex("String_Node_Str")));
      blog.setRemoteBlogId(c.getInt(c.getColumnIndex("String_Node_Str")));
      blog.setDotcomFlag(c.getInt(c.getColumnIndex("String_Node_Str")) > 0);
      if (c.getString(c.getColumnIndex("String_Node_Str")) != null) {
        blog.setDotcom_username(c.getString(c.getColumnIndex("String_Node_Str")));
      }
      if (c.getString(c.getColumnIndex("String_Node_Str")) != null) {
        blog.setDotcom_password(decryptPassword(c.getString(c.getColumnIndex("String_Node_Str"))));
      }
      if (c.getString(c.getColumnIndex("String_Node_Str")) != null) {
        blog.setApi_key(c.getString(c.getColumnIndex("String_Node_Str")));
      }
      if (c.getString(c.getColumnIndex("String_Node_Str")) != null) {
        blog.setApi_blogid(c.getString(c.getColumnIndex("String_Node_Str")));
      }
      if (c.getString(c.getColumnIndex("String_Node_Str")) != null) {
        blog.setWpVersion(c.getString(c.getColumnIndex("String_Node_Str")));
      }
      blog.setPostFormats(c.getString(c.getColumnIndex("String_Node_Str")));
      blog.setScaledImage(c.getInt(c.getColumnIndex("String_Node_Str")) > 0);
      blog.setScaledImageWidth(c.getInt(c.getColumnIndex("String_Node_Str")));
      blog.setHomeURL(c.getString(c.getColumnIndex("String_Node_Str")));
      if (c.getString(c.getColumnIndex("String_Node_Str")) == null) {
        blog.setBlogOptions("String_Node_Str");
      }
 else {
        blog.setBlogOptions(c.getString(c.getColumnIndex("String_Node_Str")));
      }
      blog.setAdmin(c.getInt(c.getColumnIndex("String_Node_Str")) > 0);
      blog.setHidden(c.getInt(c.getColumnIndex("String_Node_Str")) > 0);
      blog.setPlanID(c.getString(c.getColumnIndex("String_Node_Str")));
    }
  }
  c.close();
  return blog;
}