Program: 14633
Project: 14633
Buggy source:
public static ReaderPost fromJson(JSONObject json){
  if (json == null) {
    throw new IllegalArgumentException("String_Node_Str");
  }
  ReaderPost post=new ReaderPost();
  post.postId=json.optLong("String_Node_Str");
  post.blogId=json.optLong("String_Node_Str");
  if (json.has("String_Node_Str")) {
    post.pseudoId=JSONUtil.getString(json,"String_Node_Str");
  }
 else {
    post.pseudoId=JSONUtil.getString(json,"String_Node_Str");
  }
  post.excerpt=HtmlUtils.fastStripHtml(JSONUtil.getString(json,"String_Node_Str"));
  post.text=JSONUtil.getString(json,"String_Node_Str");
  post.title=JSONUtil.getStringDecoded(json,"String_Node_Str");
  post.url=JSONUtil.getString(json,"String_Node_Str");
  post.setBlogUrl(JSONUtil.getString(json,"String_Node_Str"));
  post.numReplies=json.optInt("String_Node_Str");
  post.numLikes=json.optInt("String_Node_Str");
  post.isLikedByCurrentUser=JSONUtil.getBool(json,"String_Node_Str");
  post.isFollowedByCurrentUser=JSONUtil.getBool(json,"String_Node_Str");
  post.isRebloggedByCurrentUser=JSONUtil.getBool(json,"String_Node_Str");
  post.isCommentsOpen=JSONUtil.getBool(json,"String_Node_Str");
  post.isExternal=JSONUtil.getBool(json,"String_Node_Str");
  post.isPrivate=JSONUtil.getBool(json,"String_Node_Str");
  assignAuthorFromJson(post,json.optJSONObject("String_Node_Str"));
  JSONObject jsonEditorial=json.optJSONObject("String_Node_Str");
  if (jsonEditorial != null) {
    post.blogId=jsonEditorial.optLong("String_Node_Str");
    post.blogName=JSONUtil.getStringDecoded(jsonEditorial,"String_Node_Str");
    post.featuredImage=getImageUrlFromFeaturedImageUrl(JSONUtil.getString(jsonEditorial,"String_Node_Str"));
    post.setPrimaryTag(JSONUtil.getString(jsonEditorial,"String_Node_Str"));
    post.published=JSONUtil.getString(jsonEditorial,"String_Node_Str");
  }
 else {
    post.featuredImage=JSONUtil.getString(json,"String_Node_Str");
    post.blogName=JSONUtil.getStringDecoded(json,"String_Node_Str");
    post.published=JSONUtil.getString(json,"String_Node_Str");
  }
  String likeDate=JSONUtil.getString(json,"String_Node_Str");
  if (!TextUtils.isEmpty(likeDate)) {
    post.timestamp=DateTimeUtils.iso8601ToTimestamp(likeDate);
  }
 else {
    post.timestamp=DateTimeUtils.iso8601ToTimestamp(post.published);
  }
  if (!post.hasFeaturedImage()) {
    JSONObject jsonMedia=json.optJSONObject("String_Node_Str");
    if (jsonMedia != null) {
      String mediaUrl=JSONUtil.getString(jsonMedia,"String_Node_Str");
      if (!TextUtils.isEmpty(mediaUrl)) {
        String type=JSONUtil.getString(jsonMedia,"String_Node_Str");
        boolean isVideo=(type != null && type.equals("String_Node_Str"));
        if (isVideo) {
          post.featuredVideo=mediaUrl;
        }
 else {
          post.featuredImage=mediaUrl;
        }
      }
    }
    if (!post.hasFeaturedImage()) {
      post.featuredImage=findFeaturedImage(post.text);
    }
  }
  if (!post.hasTitle() && post.hasExcerpt()) {
    post.title=extractTitle(post.excerpt,50);
  }
  assignTagsFromJson(post,json.optJSONObject("String_Node_Str"));
  if (post.blogId == 0) {
    JSONObject jsonSite=JSONUtil.getJSONChild(json,"String_Node_Str");
    if (jsonSite != null) {
      post.blogId=jsonSite.optInt("String_Node_Str");
      post.blogName=JSONUtil.getString(jsonSite,"String_Node_Str");
      post.setBlogUrl(JSONUtil.getString(jsonSite,"String_Node_Str"));
      post.isPrivate=JSONUtil.getBool(jsonSite,"String_Node_Str");
    }
  }
  return post;
}

Fixed version (ground truth):
public static ReaderPost fromJson(JSONObject json){
  if (json == null) {
    throw new IllegalArgumentException("String_Node_Str");
  }
  ReaderPost post=new ReaderPost();
  post.postId=json.optLong("String_Node_Str");
  post.blogId=json.optLong("String_Node_Str");
  if (json.has("String_Node_Str")) {
    post.pseudoId=JSONUtil.getString(json,"String_Node_Str");
  }
 else {
    post.pseudoId=JSONUtil.getString(json,"String_Node_Str");
  }
  post.excerpt=HtmlUtils.fastStripHtml(JSONUtil.getString(json,"String_Node_Str"));
  post.text=JSONUtil.getString(json,"String_Node_Str");
  post.title=JSONUtil.getStringDecoded(json,"String_Node_Str");
  post.url=JSONUtil.getString(json,"String_Node_Str");
  post.setBlogUrl(JSONUtil.getString(json,"String_Node_Str"));
  post.numReplies=json.optInt("String_Node_Str");
  post.numLikes=json.optInt("String_Node_Str");
  post.isLikedByCurrentUser=JSONUtil.getBool(json,"String_Node_Str");
  post.isFollowedByCurrentUser=JSONUtil.getBool(json,"String_Node_Str");
  post.isRebloggedByCurrentUser=JSONUtil.getBool(json,"String_Node_Str");
  post.isCommentsOpen=JSONUtil.getBool(json,"String_Node_Str");
  post.isExternal=JSONUtil.getBool(json,"String_Node_Str");
  post.isPrivate=JSONUtil.getBool(json,"String_Node_Str");
  assignAuthorFromJson(post,json.optJSONObject("String_Node_Str"));
  JSONObject jsonEditorial=json.optJSONObject("String_Node_Str");
  if (jsonEditorial != null) {
    post.blogId=jsonEditorial.optLong("String_Node_Str");
    post.blogName=JSONUtil.getStringDecoded(jsonEditorial,"String_Node_Str");
    post.featuredImage=getImageUrlFromFeaturedImageUrl(JSONUtil.getString(jsonEditorial,"String_Node_Str"));
    post.setPrimaryTag(JSONUtil.getString(jsonEditorial,"String_Node_Str"));
    post.published=JSONUtil.getString(jsonEditorial,"String_Node_Str");
  }
 else {
    post.featuredImage=JSONUtil.getString(json,"String_Node_Str");
    post.blogName=JSONUtil.getStringDecoded(json,"String_Node_Str");
    post.published=JSONUtil.getString(json,"String_Node_Str");
  }
  String likeDate=JSONUtil.getString(json,"String_Node_Str");
  if (!TextUtils.isEmpty(likeDate)) {
    post.timestamp=DateTimeUtils.iso8601ToTimestamp(likeDate);
  }
 else {
    post.timestamp=DateTimeUtils.iso8601ToTimestamp(post.published);
  }
  if (!post.hasFeaturedImage()) {
    JSONObject jsonMedia=json.optJSONObject("String_Node_Str");
    if (jsonMedia != null) {
      String mediaUrl=JSONUtil.getString(jsonMedia,"String_Node_Str");
      if (!TextUtils.isEmpty(mediaUrl)) {
        String type=JSONUtil.getString(jsonMedia,"String_Node_Str");
        boolean isVideo=(type != null && type.equals("String_Node_Str"));
        if (isVideo) {
          post.featuredVideo=mediaUrl;
        }
 else {
          post.featuredImage=mediaUrl;
        }
      }
    }
    if (!post.hasFeaturedImage()) {
      post.featuredImage=findFeaturedImage(post.text);
    }
  }
  if (!post.hasTitle() && post.hasExcerpt()) {
    post.title=extractTitle(post.excerpt,50);
  }
  assignTagsFromJson(post,json.optJSONObject("String_Node_Str"));
  JSONObject jsonSite=JSONUtil.getJSONChild(json,"String_Node_Str");
  if (jsonSite != null) {
    post.blogId=jsonSite.optInt("String_Node_Str");
    post.blogName=JSONUtil.getString(jsonSite,"String_Node_Str");
    post.setBlogUrl(JSONUtil.getString(jsonSite,"String_Node_Str"));
    post.isPrivate=JSONUtil.getBool(jsonSite,"String_Node_Str");
  }
  return post;
}