Program: 33889
Project: 33889
Buggy source:
@Override protected void onPostExecute(APIResponse.CODE c){
  super.onPostExecute(c);
  if (activity instanceof NavigationDrawerActivity) {
    ((NavigationDrawerActivity)activity).setActionBarTitle(event.getEventName());
  }
 else {
    activity.getActionBar().setTitle(event.getEventName());
  }
  if (event != null && mFragment.getActivity() != null) {
    eventName.setText(event.getEventName());
    eventDate.setText(event.getDateString());
    eventLoc.setText(event.getLocation());
    if (showNextMatch) {
      nextLayout.setVisibility(View.VISIBLE);
      if (nextLayout.getChildCount() > 1) {
        nextLayout.removeViewAt(1);
      }
      nextLayout.addView(next);
    }
    if (showLastMatch) {
      lastLayout.setVisibility(View.VISIBLE);
      if (lastLayout.getChildCount() > 1) {
        lastLayout.removeViewAt(1);
      }
      lastLayout.addView(last);
    }
    if (showRanks) {
      topTeams.setVisibility(View.VISIBLE);
      if (topTeams.getChildCount() > 1) {
        topTeams.removeViewAt(1);
      }
      topTeams.addView(ranks);
    }
    if (showStats) {
      topOpr.setVisibility(View.VISIBLE);
      if (topOpr.getChildCount() > 1) {
        topOpr.removeViewAt(1);
      }
      topOpr.addView(stats);
    }
    if (c == APIResponse.CODE.OFFLINECACHE) {
      activity.showWarningMessage(activity.getString(R.string.warning_using_cached_data));
    }
    if (mFragment.getView() != null) {
      mFragment.getView().findViewById(R.id.progress).setVisibility(View.GONE);
      mFragment.getView().findViewById(R.id.event_info_container).setVisibility(View.VISIBLE);
    }
  }
}

Fixed version (ground truth):
@Override protected void onPostExecute(APIResponse.CODE c){
  super.onPostExecute(c);
  if (event != null && activity != null) {
    if (activity instanceof NavigationDrawerActivity) {
      ((NavigationDrawerActivity)activity).setActionBarTitle(event.getEventName());
    }
 else {
      activity.getActionBar().setTitle(event.getEventName());
    }
    eventName.setText(event.getEventName());
    eventDate.setText(event.getDateString());
    eventLoc.setText(event.getLocation());
    if (showNextMatch) {
      nextLayout.setVisibility(View.VISIBLE);
      if (nextLayout.getChildCount() > 1) {
        nextLayout.removeViewAt(1);
      }
      nextLayout.addView(next);
    }
    if (showLastMatch) {
      lastLayout.setVisibility(View.VISIBLE);
      if (lastLayout.getChildCount() > 1) {
        lastLayout.removeViewAt(1);
      }
      lastLayout.addView(last);
    }
    if (showRanks) {
      topTeams.setVisibility(View.VISIBLE);
      if (topTeams.getChildCount() > 1) {
        topTeams.removeViewAt(1);
      }
      topTeams.addView(ranks);
    }
    if (showStats) {
      topOpr.setVisibility(View.VISIBLE);
      if (topOpr.getChildCount() > 1) {
        topOpr.removeViewAt(1);
      }
      topOpr.addView(stats);
    }
    if (c == APIResponse.CODE.OFFLINECACHE) {
      activity.showWarningMessage(activity.getString(R.string.warning_using_cached_data));
    }
    View view=mFragment.getView();
    if (view != null) {
      view.findViewById(R.id.progress).setVisibility(View.GONE);
      view.findViewById(R.id.event_info_container).setVisibility(View.VISIBLE);
    }
  }
}