Program: 33688
Project: 33688
Buggy source:
@Override protected void onPostExecute(APIResponse.CODE code){
  super.onPostExecute(code);
  View view=fragment.getView();
  if (activity != null && view != null && code != APIResponse.CODE.NODATA) {
    if (activity.getSupportActionBar() != null && eventShort != null && !eventShort.isEmpty()) {
      activity.setActionBarTitle(String.format(activity.getString(R.string.team_actionbar_title),teamKey.substring(3)));
      activity.setActionBarSubtitle("String_Node_Str" + eventYear + "String_Node_Str"+ eventShort);
    }
    ListViewAdapter adapter=new ListViewAdapter(activity,summary);
    TextView noDataText=(TextView)view.findViewById(R.id.no_data);
    if (adapter.isEmpty()) {
      noDataText.setText(R.string.not_available);
      noDataText.setVisibility(View.VISIBLE);
    }
 else {
      noDataText.setVisibility(View.GONE);
      ListView listView=(ListView)view.findViewById(R.id.list);
      listView.setVisibility(View.VISIBLE);
      Parcelable state=listView.onSaveInstanceState();
      int firstVisiblePosition=listView.getFirstVisiblePosition();
      listView.setAdapter(adapter);
      listView.onRestoreInstanceState(state);
      listView.setSelection(firstVisiblePosition);
      adapter.notifyDataSetChanged();
    }
    view.findViewById(R.id.progress).setVisibility(View.GONE);
    view.findViewById(R.id.list).setVisibility(View.VISIBLE);
    if (code == APIResponse.CODE.OFFLINECACHE) {
      activity.showWarningMessage(activity.getString(R.string.warning_using_cached_data));
    }
  }
  if (code == APIResponse.CODE.LOCAL && !isCancelled()) {
    requestParams.forceFromCache=false;
    PopulateTeamAtEventSummary secondTask=new PopulateTeamAtEventSummary(fragment,requestParams);
    fragment.updateTask(secondTask);
    secondTask.execute(teamKey,eventKey);
  }
 else {
    Log.i(Constants.REFRESH_LOG,teamKey + "String_Node_Str" + eventKey+ "String_Node_Str");
    if (activity != null && activity instanceof RefreshableHostActivity) {
      activity.notifyRefreshComplete(fragment);
    }
  }
}

Fixed version (ground truth):
@Override protected void onPostExecute(APIResponse.CODE code){
  super.onPostExecute(code);
  View view=fragment.getView();
  if (activity != null && view != null) {
    if (activity.getSupportActionBar() != null && eventShort != null && !eventShort.isEmpty()) {
      activity.setActionBarTitle(String.format(activity.getString(R.string.team_actionbar_title),teamKey.substring(3)));
      activity.setActionBarSubtitle("String_Node_Str" + eventYear + "String_Node_Str"+ eventShort);
    }
    ListViewAdapter adapter=new ListViewAdapter(activity,summary);
    TextView noDataText=(TextView)view.findViewById(R.id.no_data);
    if (code == APIResponse.CODE.NODATA || (!requestParams.forceFromCache && summary.isEmpty())) {
      noDataText.setText(R.string.not_available);
      noDataText.setVisibility(View.VISIBLE);
    }
 else {
      noDataText.setVisibility(View.GONE);
      ListView listView=(ListView)view.findViewById(R.id.list);
      listView.setVisibility(View.VISIBLE);
      Parcelable state=listView.onSaveInstanceState();
      int firstVisiblePosition=listView.getFirstVisiblePosition();
      listView.setAdapter(adapter);
      listView.onRestoreInstanceState(state);
      listView.setSelection(firstVisiblePosition);
      adapter.notifyDataSetChanged();
    }
    view.findViewById(R.id.progress).setVisibility(View.GONE);
    view.findViewById(R.id.list).setVisibility(View.VISIBLE);
    if (code == APIResponse.CODE.OFFLINECACHE) {
      activity.showWarningMessage(activity.getString(R.string.warning_using_cached_data));
    }
  }
  if (code == APIResponse.CODE.LOCAL && !isCancelled()) {
    requestParams.forceFromCache=false;
    PopulateTeamAtEventSummary secondTask=new PopulateTeamAtEventSummary(fragment,requestParams);
    fragment.updateTask(secondTask);
    secondTask.execute(teamKey,eventKey);
  }
 else {
    Log.i(Constants.REFRESH_LOG,teamKey + "String_Node_Str" + eventKey+ "String_Node_Str");
    if (activity != null && activity instanceof RefreshableHostActivity) {
      activity.notifyRefreshComplete(fragment);
    }
  }
}