Program: 14021
Project: 14021
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");
  post.feedId=json.optLong("String_Node_Str");
  post.feedItemId=json.optLong("String_Node_Str");
  if (json.has("String_Node_Str")) {
    post.pseudoId=JSONUtils.getString(json,"String_Node_Str");
  }
 else {
    post.pseudoId=JSONUtils.getString(json,"String_Node_Str");
  }
  post.excerpt=HtmlUtils.fastStripHtml(JSONUtils.getString(json,"String_Node_Str")).trim();
  post.text=JSONUtils.getString(json,"String_Node_Str");
  post.title=JSONUtils.getStringDecoded(json,"String_Node_Str");
  post.format=JSONUtils.getString(json,"String_Node_Str");
  post.url=JSONUtils.getString(json,"String_Node_Str");
  post.shortUrl=JSONUtils.getString(json,"String_Node_Str");
  post.setBlogUrl(JSONUtils.getString(json,"String_Node_Str"));
  post.numLikes=json.optInt("String_Node_Str");
  post.isLikedByCurrentUser=JSONUtils.getBool(json,"String_Node_Str");
  post.isFollowedByCurrentUser=JSONUtils.getBool(json,"String_Node_Str");
  post.isExternal=JSONUtils.getBool(json,"String_Node_Str");
  post.isPrivate=JSONUtils.getBool(json,"String_Node_Str");
  post.isJetpack=JSONUtils.getBool(json,"String_Node_Str");
  JSONObject jsonDiscussion=json.optJSONObject("String_Node_Str");
  if (jsonDiscussion != null) {
    post.isCommentsOpen=JSONUtils.getBool(jsonDiscussion,"String_Node_Str");
    post.numReplies=jsonDiscussion.optInt("String_Node_Str");
  }
 else {
    post.isCommentsOpen=JSONUtils.getBool(json,"String_Node_Str");
    post.numReplies=json.optInt("String_Node_Str");
  }
  assignAuthorFromJson(post,json.optJSONObject("String_Node_Str"));
  post.featuredImage=JSONUtils.getString(json,"String_Node_Str");
  post.blogName=JSONUtils.getStringDecoded(json,"String_Node_Str");
  post.pubDate=JSONUtils.getString(json,"String_Node_Str");
  if (json.has("String_Node_Str")) {
    post.date=JSONUtils.getString(json,"String_Node_Str");
  }
 else   if (json.has("String_Node_Str")) {
    post.date=JSONUtils.getString(json,"String_Node_Str");
  }
 else {
    post.date=post.pubDate;
  }
  post.sortIndex=DateTimeUtils.iso8601ToTimestamp(post.date);
  if (!post.hasTitle() && post.hasExcerpt()) {
    post.title=extractTitle(post.excerpt,50);
  }
  if (post.hasTitle() && post.title.contains("String_Node_Str") && post.title.contains("String_Node_Str")) {
    post.title=HtmlUtils.stripHtml(post.title);
  }
  assignTagsFromJson(post,json.optJSONObject("String_Node_Str"));
  JSONObject jsonAttachments=json.optJSONObject("String_Node_Str");
  if (jsonAttachments != null && jsonAttachments.length() > 0) {
    post.attachmentsJson=jsonAttachments.toString();
  }
  JSONObject jsonSite=JSONUtils.getJSONChild(json,"String_Node_Str");
  if (jsonSite != null) {
    post.blogId=jsonSite.optInt("String_Node_Str");
    post.blogName=JSONUtils.getString(jsonSite,"String_Node_Str");
    post.setBlogUrl(JSONUtils.getString(jsonSite,"String_Node_Str"));
    post.isPrivate=JSONUtils.getBool(jsonSite,"String_Node_Str");
    post.isJetpack=JSONUtils.getBool(jsonSite,"String_Node_Str");
  }
  JSONObject jsonDiscover=json.optJSONObject("String_Node_Str");
  if (jsonDiscover != null) {
    post.setDiscoverJson(jsonDiscover.toString());
  }
  assignXpostIdsFromJson(post,json.optJSONArray("String_Node_Str"));
  if (!post.hasFeaturedImage()) {
    JSONObject jsonMedia=json.optJSONObject("String_Node_Str");
    if (jsonMedia != null && jsonMedia.length() > 0) {
      String mediaUrl=JSONUtils.getString(jsonMedia,"String_Node_Str");
      if (!TextUtils.isEmpty(mediaUrl)) {
        String type=JSONUtils.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.hasAttachments()) {
    post.featuredImage=new ImageSizeMap(post.attachmentsJson).getLargestImageUrl(ReaderConstants.MIN_FEATURED_IMAGE_WIDTH);
  }
  if (!post.hasFeaturedImage() && post.hasText() && post.text.contains("String_Node_Str")) {
    post.featuredImage=new ReaderImageScanner(post.text,post.isPrivate).getLargestImage(ReaderConstants.MIN_FEATURED_IMAGE_WIDTH);
  }
  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");
  post.feedId=json.optLong("String_Node_Str");
  post.feedItemId=json.optLong("String_Node_Str");
  if (json.has("String_Node_Str")) {
    post.pseudoId=JSONUtils.getString(json,"String_Node_Str");
  }
 else {
    post.pseudoId=JSONUtils.getString(json,"String_Node_Str");
  }
  post.excerpt=HtmlUtils.fastStripHtml(JSONUtils.getString(json,"String_Node_Str")).trim();
  post.text=JSONUtils.getString(json,"String_Node_Str");
  post.title=JSONUtils.getStringDecoded(json,"String_Node_Str");
  post.format=JSONUtils.getString(json,"String_Node_Str");
  post.url=JSONUtils.getString(json,"String_Node_Str");
  post.shortUrl=JSONUtils.getString(json,"String_Node_Str");
  post.setBlogUrl(JSONUtils.getString(json,"String_Node_Str"));
  post.numLikes=json.optInt("String_Node_Str");
  post.isLikedByCurrentUser=JSONUtils.getBool(json,"String_Node_Str");
  post.isFollowedByCurrentUser=JSONUtils.getBool(json,"String_Node_Str");
  post.isExternal=JSONUtils.getBool(json,"String_Node_Str");
  post.isPrivate=JSONUtils.getBool(json,"String_Node_Str");
  post.isJetpack=JSONUtils.getBool(json,"String_Node_Str");
  JSONObject jsonDiscussion=json.optJSONObject("String_Node_Str");
  if (jsonDiscussion != null) {
    post.isCommentsOpen=JSONUtils.getBool(jsonDiscussion,"String_Node_Str");
    post.numReplies=jsonDiscussion.optInt("String_Node_Str");
  }
 else {
    post.isCommentsOpen=JSONUtils.getBool(json,"String_Node_Str");
    post.numReplies=json.optInt("String_Node_Str");
  }
  assignAuthorFromJson(post,json.optJSONObject("String_Node_Str"));
  post.featuredImage=JSONUtils.getString(json,"String_Node_Str");
  post.blogName=JSONUtils.getStringDecoded(json,"String_Node_Str");
  post.pubDate=JSONUtils.getString(json,"String_Node_Str");
  AppLog.w(AppLog.T.READER,post.pubDate);
  if (json.has("String_Node_Str")) {
    post.date=JSONUtils.getString(json,"String_Node_Str");
  }
 else   if (json.has("String_Node_Str")) {
    post.date=JSONUtils.getString(json,"String_Node_Str");
  }
 else {
    post.date=post.pubDate;
  }
  post.sortIndex=DateTimeUtils.iso8601ToTimestamp(post.date);
  if (!post.hasTitle() && post.hasExcerpt()) {
    post.title=extractTitle(post.excerpt,50);
  }
  if (post.hasTitle() && post.title.contains("String_Node_Str") && post.title.contains("String_Node_Str")) {
    post.title=HtmlUtils.stripHtml(post.title);
  }
  assignTagsFromJson(post,json.optJSONObject("String_Node_Str"));
  JSONObject jsonAttachments=json.optJSONObject("String_Node_Str");
  if (jsonAttachments != null && jsonAttachments.length() > 0) {
    post.attachmentsJson=jsonAttachments.toString();
  }
  JSONObject jsonSite=JSONUtils.getJSONChild(json,"String_Node_Str");
  if (jsonSite != null) {
    post.blogId=jsonSite.optInt("String_Node_Str");
    post.blogName=JSONUtils.getString(jsonSite,"String_Node_Str");
    post.setBlogUrl(JSONUtils.getString(jsonSite,"String_Node_Str"));
    post.isPrivate=JSONUtils.getBool(jsonSite,"String_Node_Str");
    post.isJetpack=JSONUtils.getBool(jsonSite,"String_Node_Str");
  }
  JSONObject jsonDiscover=json.optJSONObject("String_Node_Str");
  if (jsonDiscover != null) {
    post.setDiscoverJson(jsonDiscover.toString());
  }
  assignXpostIdsFromJson(post,json.optJSONArray("String_Node_Str"));
  if (!post.hasFeaturedImage()) {
    JSONObject jsonMedia=json.optJSONObject("String_Node_Str");
    if (jsonMedia != null && jsonMedia.length() > 0) {
      String mediaUrl=JSONUtils.getString(jsonMedia,"String_Node_Str");
      if (!TextUtils.isEmpty(mediaUrl)) {
        String type=JSONUtils.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.hasAttachments()) {
    post.featuredImage=new ImageSizeMap(post.attachmentsJson).getLargestImageUrl(ReaderConstants.MIN_FEATURED_IMAGE_WIDTH);
  }
  if (!post.hasFeaturedImage() && post.hasText() && post.text.contains("String_Node_Str")) {
    post.featuredImage=new ReaderImageScanner(post.text,post.isPrivate).getLargestImage(ReaderConstants.MIN_FEATURED_IMAGE_WIDTH);
  }
  return post;
}