Program: 33759
Project: 33759
Buggy source:
@Override public View getView(final Context context,LayoutInflater inflater,View convertView){
  ViewHolder holder;
  if (convertView == null || !(convertView.getTag() instanceof ViewHolder)) {
    convertView=inflater.inflate(R.layout.list_item_match,null);
    holder=new ViewHolder();
    holder.matchTitleContainer=(RelativeLayout)convertView.findViewById(R.id.match_title_container);
    holder.matchTitle=(TextView)convertView.findViewById(R.id.match_title);
    holder.red1=(TextView)convertView.findViewById(R.id.red1);
    holder.red2=(TextView)convertView.findViewById(R.id.red2);
    holder.red3=(TextView)convertView.findViewById(R.id.red3);
    holder.blue1=(TextView)convertView.findViewById(R.id.blue1);
    holder.blue2=(TextView)convertView.findViewById(R.id.blue2);
    holder.blue3=(TextView)convertView.findViewById(R.id.blue3);
    holder.redScore=(TextView)convertView.findViewById(R.id.red_score);
    holder.blueScore=(TextView)convertView.findViewById(R.id.blue_score);
    holder.redAlliance=convertView.findViewById(R.id.red_alliance);
    holder.blueAlliance=convertView.findViewById(R.id.blue_alliance);
    holder.videoIcon=(ImageView)convertView.findViewById(R.id.match_video);
    holder.header=(TableRow)convertView.findViewById(R.id.match_header);
    convertView.setTag(holder);
  }
 else {
    holder=(ViewHolder)convertView.getTag();
  }
  holder.matchTitle.setTag(matchKey);
  holder.red1.setLines(1);
  if (!redScore.contains("String_Node_Str") && !blueScore.contains("String_Node_Str")) {
    try {
      int bScore=Integer.parseInt(blueScore), rScore=Integer.parseInt(redScore);
      if (bScore > rScore) {
        holder.blueAlliance.setBackgroundResource(R.drawable.blue_border);
        holder.redAlliance.setBackgroundResource(R.drawable.no_border);
      }
 else       if (bScore < rScore) {
        holder.redAlliance.setBackgroundResource(R.drawable.red_border);
        holder.blueAlliance.setBackgroundResource(R.drawable.no_border);
      }
    }
 catch (    NumberFormatException e) {
      Log.w(Constants.LOG_TAG,"String_Node_Str");
    }
  }
  if (videoKey != null && showVideoIcon) {
    holder.videoIcon.setVisibility(View.VISIBLE);
  }
 else {
    holder.videoIcon.setVisibility(View.GONE);
  }
  if (showMatchHeader) {
    holder.header.setVisibility(View.VISIBLE);
    holder.matchTitleContainer.setVisibility(View.GONE);
  }
 else {
    holder.header.setVisibility(View.GONE);
    holder.matchTitleContainer.setVisibility(View.VISIBLE);
  }
  holder.matchTitle.setText(matchTitle);
  TeamAtEventClickListener listener=new TeamAtEventClickListener(context);
  String eventKey=matchKey.split("String_Node_Str")[0];
  if (redTeams.length == 0) {
    holder.red1.setText("String_Node_Str");
    holder.red2.setText("String_Node_Str");
    holder.red3.setText("String_Node_Str");
  }
 else {
    holder.red1.setVisibility(View.VISIBLE);
    holder.red1.setText(redTeams[0]);
    holder.red1.setTag("String_Node_Str" + redTeams[0] + "String_Node_Str"+ eventKey);
    holder.red1.setOnClickListener(listener);
    if (selectedTeamNumber.equals(redTeams[0])) {
      holder.red1.setTypeface(Typeface.DEFAULT_BOLD);
    }
 else {
      holder.red1.setTypeface(Typeface.DEFAULT);
    }
  }
  if (redTeams.length == 1) {
    holder.red2.setVisibility(View.GONE);
    holder.red3.setVisibility(View.GONE);
  }
 else {
    holder.red2.setVisibility(View.VISIBLE);
    holder.red2.setText(redTeams[1]);
    holder.red2.setTag("String_Node_Str" + redTeams[1] + "String_Node_Str"+ eventKey);
    holder.red2.setOnClickListener(listener);
    if (selectedTeamNumber.equals(redTeams[1])) {
      holder.red2.setTypeface(Typeface.DEFAULT_BOLD);
    }
 else {
      holder.red2.setTypeface(Typeface.DEFAULT);
    }
  }
  if (redTeams.length == 2) {
    holder.red3.setVisibility(View.GONE);
  }
 else {
    holder.red3.setVisibility(View.VISIBLE);
    holder.red3.setText(redTeams[2]);
    holder.red3.setTag("String_Node_Str" + redTeams[2] + "String_Node_Str"+ eventKey);
    holder.red3.setOnClickListener(listener);
    if (selectedTeamNumber.equals(redTeams[2])) {
      holder.red3.setTypeface(Typeface.DEFAULT_BOLD);
    }
 else {
      holder.red3.setTypeface(Typeface.DEFAULT);
    }
  }
  if (blueTeams.length == 0) {
    holder.blue1.setText("String_Node_Str");
    holder.blue2.setText("String_Node_Str");
    holder.blue3.setText("String_Node_Str");
  }
 else {
    holder.blue1.setVisibility(View.VISIBLE);
    holder.blue1.setText(blueTeams[0]);
    holder.blue1.setTag("String_Node_Str" + blueTeams[0] + "String_Node_Str"+ eventKey);
    holder.blue1.setOnClickListener(listener);
    if (selectedTeamNumber.equals(blueTeams[0])) {
      holder.blue1.setTypeface(Typeface.DEFAULT_BOLD);
    }
 else {
      holder.blue1.setTypeface(Typeface.DEFAULT);
    }
    if (blueTeams.length == 1) {
      holder.blue2.setVisibility(View.GONE);
      holder.blue3.setVisibility(View.GONE);
    }
 else {
      holder.blue2.setVisibility(View.VISIBLE);
      holder.blue2.setText(blueTeams[1]);
      holder.blue2.setTag("String_Node_Str" + blueTeams[1] + "String_Node_Str"+ eventKey);
      holder.blue2.setOnClickListener(listener);
      if (selectedTeamNumber.equals(blueTeams[1])) {
        holder.blue2.setTypeface(Typeface.DEFAULT_BOLD);
      }
 else {
        holder.blue2.setTypeface(Typeface.DEFAULT);
      }
      if (blueTeams.length == 2) {
        holder.blue3.setVisibility(View.GONE);
      }
 else {
        holder.blue3.setVisibility(View.VISIBLE);
        holder.blue3.setText(blueTeams[2]);
        holder.blue3.setTag("String_Node_Str" + blueTeams[2] + "String_Node_Str"+ eventKey);
        holder.blue3.setOnClickListener(listener);
        if (selectedTeamNumber.equals(blueTeams[2])) {
          holder.blue3.setTypeface(Typeface.DEFAULT_BOLD);
        }
 else {
          holder.blue3.setTypeface(Typeface.DEFAULT);
        }
      }
    }
    holder.redScore.setText(redScore);
    holder.blueScore.setText(blueScore);
  }
  return convertView;
}

Fixed version (ground truth):
@Override public View getView(final Context context,LayoutInflater inflater,View convertView){
  ViewHolder holder;
  if (convertView == null || !(convertView.getTag() instanceof ViewHolder)) {
    convertView=inflater.inflate(R.layout.list_item_match,null);
    holder=new ViewHolder();
    holder.matchTitleContainer=(RelativeLayout)convertView.findViewById(R.id.match_title_container);
    holder.matchTitle=(TextView)convertView.findViewById(R.id.match_title);
    holder.red1=(TextView)convertView.findViewById(R.id.red1);
    holder.red2=(TextView)convertView.findViewById(R.id.red2);
    holder.red3=(TextView)convertView.findViewById(R.id.red3);
    holder.blue1=(TextView)convertView.findViewById(R.id.blue1);
    holder.blue2=(TextView)convertView.findViewById(R.id.blue2);
    holder.blue3=(TextView)convertView.findViewById(R.id.blue3);
    holder.redScore=(TextView)convertView.findViewById(R.id.red_score);
    holder.blueScore=(TextView)convertView.findViewById(R.id.blue_score);
    holder.redAlliance=convertView.findViewById(R.id.red_alliance);
    holder.blueAlliance=convertView.findViewById(R.id.blue_alliance);
    holder.videoIcon=(ImageView)convertView.findViewById(R.id.match_video);
    holder.header=(TableRow)convertView.findViewById(R.id.match_header);
    convertView.setTag(holder);
  }
 else {
    holder=(ViewHolder)convertView.getTag();
  }
  holder.matchTitle.setTag(matchKey);
  holder.red1.setLines(1);
  if (!redScore.contains("String_Node_Str") && !blueScore.contains("String_Node_Str")) {
    try {
      int bScore=Integer.parseInt(blueScore), rScore=Integer.parseInt(redScore);
      if (bScore > rScore) {
        holder.blueAlliance.setBackgroundResource(R.drawable.blue_border);
        holder.redAlliance.setBackgroundResource(R.drawable.no_border);
      }
 else       if (bScore < rScore) {
        holder.redAlliance.setBackgroundResource(R.drawable.red_border);
        holder.blueAlliance.setBackgroundResource(R.drawable.no_border);
      }
    }
 catch (    NumberFormatException e) {
      Log.w(Constants.LOG_TAG,"String_Node_Str");
    }
  }
 else {
    holder.redAlliance.setBackgroundResource(R.drawable.no_border);
    holder.blueAlliance.setBackgroundResource(R.drawable.no_border);
  }
  if (videoKey != null && showVideoIcon) {
    holder.videoIcon.setVisibility(View.VISIBLE);
  }
 else {
    holder.videoIcon.setVisibility(View.GONE);
  }
  if (showMatchHeader) {
    holder.header.setVisibility(View.VISIBLE);
    holder.matchTitleContainer.setVisibility(View.GONE);
  }
 else {
    holder.header.setVisibility(View.GONE);
    holder.matchTitleContainer.setVisibility(View.VISIBLE);
  }
  holder.matchTitle.setText(matchTitle);
  TeamAtEventClickListener listener=new TeamAtEventClickListener(context);
  String eventKey=matchKey.split("String_Node_Str")[0];
  if (redTeams.length == 0) {
    holder.red1.setText("String_Node_Str");
    holder.red2.setText("String_Node_Str");
    holder.red3.setText("String_Node_Str");
  }
 else {
    holder.red1.setVisibility(View.VISIBLE);
    holder.red1.setText(redTeams[0]);
    holder.red1.setTag("String_Node_Str" + redTeams[0] + "String_Node_Str"+ eventKey);
    holder.red1.setOnClickListener(listener);
    if (selectedTeamNumber.equals(redTeams[0])) {
      holder.red1.setTypeface(Typeface.DEFAULT_BOLD);
    }
 else {
      holder.red1.setTypeface(Typeface.DEFAULT);
    }
  }
  if (redTeams.length == 1) {
    holder.red2.setVisibility(View.GONE);
    holder.red3.setVisibility(View.GONE);
  }
 else {
    holder.red2.setVisibility(View.VISIBLE);
    holder.red2.setText(redTeams[1]);
    holder.red2.setTag("String_Node_Str" + redTeams[1] + "String_Node_Str"+ eventKey);
    holder.red2.setOnClickListener(listener);
    if (selectedTeamNumber.equals(redTeams[1])) {
      holder.red2.setTypeface(Typeface.DEFAULT_BOLD);
    }
 else {
      holder.red2.setTypeface(Typeface.DEFAULT);
    }
  }
  if (redTeams.length == 2) {
    holder.red3.setVisibility(View.GONE);
  }
 else {
    holder.red3.setVisibility(View.VISIBLE);
    holder.red3.setText(redTeams[2]);
    holder.red3.setTag("String_Node_Str" + redTeams[2] + "String_Node_Str"+ eventKey);
    holder.red3.setOnClickListener(listener);
    if (selectedTeamNumber.equals(redTeams[2])) {
      holder.red3.setTypeface(Typeface.DEFAULT_BOLD);
    }
 else {
      holder.red3.setTypeface(Typeface.DEFAULT);
    }
  }
  if (blueTeams.length == 0) {
    holder.blue1.setText("String_Node_Str");
    holder.blue2.setText("String_Node_Str");
    holder.blue3.setText("String_Node_Str");
  }
 else {
    holder.blue1.setVisibility(View.VISIBLE);
    holder.blue1.setText(blueTeams[0]);
    holder.blue1.setTag("String_Node_Str" + blueTeams[0] + "String_Node_Str"+ eventKey);
    holder.blue1.setOnClickListener(listener);
    if (selectedTeamNumber.equals(blueTeams[0])) {
      holder.blue1.setTypeface(Typeface.DEFAULT_BOLD);
    }
 else {
      holder.blue1.setTypeface(Typeface.DEFAULT);
    }
    if (blueTeams.length == 1) {
      holder.blue2.setVisibility(View.GONE);
      holder.blue3.setVisibility(View.GONE);
    }
 else {
      holder.blue2.setVisibility(View.VISIBLE);
      holder.blue2.setText(blueTeams[1]);
      holder.blue2.setTag("String_Node_Str" + blueTeams[1] + "String_Node_Str"+ eventKey);
      holder.blue2.setOnClickListener(listener);
      if (selectedTeamNumber.equals(blueTeams[1])) {
        holder.blue2.setTypeface(Typeface.DEFAULT_BOLD);
      }
 else {
        holder.blue2.setTypeface(Typeface.DEFAULT);
      }
      if (blueTeams.length == 2) {
        holder.blue3.setVisibility(View.GONE);
      }
 else {
        holder.blue3.setVisibility(View.VISIBLE);
        holder.blue3.setText(blueTeams[2]);
        holder.blue3.setTag("String_Node_Str" + blueTeams[2] + "String_Node_Str"+ eventKey);
        holder.blue3.setOnClickListener(listener);
        if (selectedTeamNumber.equals(blueTeams[2])) {
          holder.blue3.setTypeface(Typeface.DEFAULT_BOLD);
        }
 else {
          holder.blue3.setTypeface(Typeface.DEFAULT);
        }
      }
    }
    holder.redScore.setText(redScore);
    holder.blueScore.setText(blueScore);
  }
  return convertView;
}