Program: 33888
Project: 33888
Buggy source:
@Override protected APIResponse.CODE doInBackground(String... params){
  eventKey=params[0];
  View view=mFragment.getView();
  if (view != null && mFragment.getActivity() != null) {
    eventName=(TextView)view.findViewById(R.id.event_name);
    eventDate=(TextView)view.findViewById(R.id.event_date);
    eventLoc=(TextView)view.findViewById(R.id.event_location);
    nextLayout=(LinearLayout)view.findViewById(R.id.event_next_match_container);
    lastLayout=(LinearLayout)view.findViewById(R.id.event_last_match_container);
    topTeams=(LinearLayout)view.findViewById(R.id.event_top_teams_container);
    topOpr=(LinearLayout)view.findViewById(R.id.top_opr_container);
    LayoutInflater inflater=(LayoutInflater)activity.getSystemService(Context.LAYOUT_INFLATER_SERVICE);
    try {
      APIResponse<Event> response=DataManager.getEvent(activity,eventKey);
      event=response.getData();
    }
 catch (    DataManager.NoDataException e) {
      Log.w(Constants.LOG_TAG,"String_Node_Str");
      return APIResponse.CODE.NODATA;
    }
    if (event.hasStarted()) {
      showRanks=showStats=true;
      ranks=new TextView(activity);
      try {
        APIResponse<ArrayList<JsonArray>> rankResponse=DataManager.getEventRankings(activity,eventKey);
        ArrayList<JsonArray> rankList=rankResponse.getData();
        String rankString="String_Node_Str";
        for (int i=1; i < Math.min(6,rankList.size()); i++) {
          rankString+=((i) + "String_Node_Str" + rankList.get(i).get(1).getAsString()) + "String_Node_Str";
        }
        ranks.setText(rankString);
      }
 catch (      DataManager.NoDataException e) {
        Log.w(Constants.LOG_TAG,"String_Node_Str");
        return APIResponse.CODE.NODATA;
      }
      stats=new TextView(activity);
      try {
        APIResponse<JsonObject> statsResponse=DataManager.getEventStats(activity,eventKey);
        ArrayList<Map.Entry<String,JsonElement>> opr=new ArrayList<>();
        if (statsResponse.getData().has("String_Node_Str")) {
          opr.addAll(statsResponse.getData().get("String_Node_Str").getAsJsonObject().entrySet());
          Collections.sort(opr,new TeamSortByOPRComparator());
          String statsString="String_Node_Str";
          for (int i=0; i < Math.min(5,opr.size()); i++) {
            statsString+=((i + 1) + "String_Node_Str" + opr.get(i).getKey()+ "String_Node_Str");
          }
          stats.setText(statsString);
        }
      }
 catch (      DataManager.NoDataException e) {
        Log.w(Constants.LOG_TAG,"String_Node_Str");
        return APIResponse.CODE.NODATA;
      }
    }
    if (event.isHappeningNow()) {
      try {
        APIResponse<ArrayList<Match>> matchResult=DataManager.getMatchList(activity,eventKey);
        ArrayList<Match> matches=matchResult.getData();
        Collections.sort(matches,new MatchSortByPlayOrderComparator());
        Match nextMatch=Match.getNextMatchPlayed(matches);
        Match lastMatch=Match.getLastMatchPlayed(matches);
        if (nextMatch != null) {
          showNextMatch=true;
          next=nextMatch.render().getView(activity,inflater,null);
        }
        if (lastMatch != null) {
          showLastMatch=true;
          last=lastMatch.render().getView(activity,inflater,null);
        }
      }
 catch (      DataManager.NoDataException e) {
        Log.w(Constants.LOG_TAG,"String_Node_Str");
        return APIResponse.CODE.NODATA;
      }
    }
    view.findViewById(R.id.event_location_container).setTag("String_Node_Str" + event.getLocation().replace("String_Node_Str","String_Node_Str"));
    view.findViewById(R.id.event_website_button).setTag(!event.getWebsite().isEmpty() ? event.getWebsite() : "String_Node_Str" + event.getEventName());
    view.findViewById(R.id.event_twitter_button).setTag("String_Node_Str" + event.getEventKey());
    view.findViewById(R.id.event_youtube_button).setTag("String_Node_Str" + event.getEventKey());
    view.findViewById(R.id.event_cd_button).setTag("String_Node_Str" + event.getEventKey());
  }
  return APIResponse.CODE.NODATA;
}

Fixed version (ground truth):
@Override protected APIResponse.CODE doInBackground(String... params){
  eventKey=params[0];
  View view=mFragment.getView();
  if (view != null && activity != null) {
    eventName=(TextView)view.findViewById(R.id.event_name);
    eventDate=(TextView)view.findViewById(R.id.event_date);
    eventLoc=(TextView)view.findViewById(R.id.event_location);
    nextLayout=(LinearLayout)view.findViewById(R.id.event_next_match_container);
    lastLayout=(LinearLayout)view.findViewById(R.id.event_last_match_container);
    topTeams=(LinearLayout)view.findViewById(R.id.event_top_teams_container);
    topOpr=(LinearLayout)view.findViewById(R.id.top_opr_container);
    LayoutInflater inflater=(LayoutInflater)activity.getSystemService(Context.LAYOUT_INFLATER_SERVICE);
    try {
      APIResponse<Event> response=DataManager.getEvent(activity,eventKey);
      event=response.getData();
    }
 catch (    DataManager.NoDataException e) {
      Log.w(Constants.LOG_TAG,"String_Node_Str");
      return APIResponse.CODE.NODATA;
    }
    if (event.hasStarted()) {
      showRanks=showStats=true;
      ranks=new TextView(activity);
      try {
        APIResponse<ArrayList<JsonArray>> rankResponse=DataManager.getEventRankings(activity,eventKey);
        ArrayList<JsonArray> rankList=rankResponse.getData();
        String rankString="String_Node_Str";
        for (int i=1; i < Math.min(6,rankList.size()); i++) {
          rankString+=((i) + "String_Node_Str" + rankList.get(i).get(1).getAsString()) + "String_Node_Str";
        }
        ranks.setText(rankString);
      }
 catch (      DataManager.NoDataException e) {
        Log.w(Constants.LOG_TAG,"String_Node_Str");
        return APIResponse.CODE.NODATA;
      }
      stats=new TextView(activity);
      try {
        APIResponse<JsonObject> statsResponse=DataManager.getEventStats(activity,eventKey);
        ArrayList<Map.Entry<String,JsonElement>> opr=new ArrayList<>();
        if (statsResponse.getData().has("String_Node_Str")) {
          opr.addAll(statsResponse.getData().get("String_Node_Str").getAsJsonObject().entrySet());
          Collections.sort(opr,new TeamSortByOPRComparator());
          String statsString="String_Node_Str";
          for (int i=0; i < Math.min(5,opr.size()); i++) {
            statsString+=((i + 1) + "String_Node_Str" + opr.get(i).getKey()+ "String_Node_Str");
          }
          stats.setText(statsString);
        }
      }
 catch (      DataManager.NoDataException e) {
        Log.w(Constants.LOG_TAG,"String_Node_Str");
        return APIResponse.CODE.NODATA;
      }
    }
    if (event.isHappeningNow()) {
      try {
        APIResponse<ArrayList<Match>> matchResult=DataManager.getMatchList(activity,eventKey);
        ArrayList<Match> matches=matchResult.getData();
        Collections.sort(matches,new MatchSortByPlayOrderComparator());
        Match nextMatch=Match.getNextMatchPlayed(matches);
        Match lastMatch=Match.getLastMatchPlayed(matches);
        if (nextMatch != null) {
          showNextMatch=true;
          next=nextMatch.render().getView(activity,inflater,null);
        }
        if (lastMatch != null) {
          showLastMatch=true;
          last=lastMatch.render().getView(activity,inflater,null);
        }
      }
 catch (      DataManager.NoDataException e) {
        Log.w(Constants.LOG_TAG,"String_Node_Str");
        return APIResponse.CODE.NODATA;
      }
    }
    view.findViewById(R.id.event_location_container).setTag("String_Node_Str" + event.getLocation().replace("String_Node_Str","String_Node_Str"));
    view.findViewById(R.id.event_website_button).setTag(!event.getWebsite().isEmpty() ? event.getWebsite() : "String_Node_Str" + event.getEventName());
    view.findViewById(R.id.event_twitter_button).setTag("String_Node_Str" + event.getEventKey());
    view.findViewById(R.id.event_youtube_button).setTag("String_Node_Str" + event.getEventKey());
    view.findViewById(R.id.event_cd_button).setTag("String_Node_Str" + event.getEventKey());
  }
  return APIResponse.CODE.NODATA;
}