Program: 33691
Project: 33691
Buggy source:
protected void onPostExecute(APIResponse.CODE code){
  View view=mFragment.getView();
  if (view != null && activity != null) {
    TextView noDataText=(TextView)view.findViewById(R.id.no_match_data);
    if (code == APIResponse.CODE.NODATA || (!requestParams.forceFromCache && (groups == null || adapter.groups.isEmpty()))) {
      noDataText.setVisibility(View.VISIBLE);
      noDataText.setText(teamKey.isEmpty() ? R.string.no_match_data : R.string.no_team_match_data);
    }
 else {
      noDataText.setVisibility(View.GONE);
      ExpandableListView results=(ExpandableListView)view.findViewById(R.id.match_results);
      Parcelable state=results.onSaveInstanceState();
      int firstVisiblePosition=results.getFirstVisiblePosition();
      results.setAdapter(adapter);
      results.onRestoreInstanceState(state);
      results.setSelection(firstVisiblePosition);
      if (groups.size() == 1) {
        results.expandGroup(0);
      }
      adapter.notifyDataSetChanged();
    }
    if (code != APIResponse.CODE.NODATA) {
      if (event.isHappeningNow()) {
        Log.d(Constants.LOG_TAG,"String_Node_Str" + eventKey);
        EventBus.getDefault().post(new LiveEventMatchUpdateEvent(lastMatch,nextMatch));
      }
 else {
        Log.d(Constants.LOG_TAG,"String_Node_Str");
      }
    }
    view.findViewById(R.id.progress).setVisibility(View.GONE);
    view.findViewById(R.id.match_results).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;
    PopulateEventMatches secondLoad=new PopulateEventMatches(mFragment,requestParams);
    mFragment.updateTask(secondLoad);
    secondLoad.execute(eventKey,teamKey);
  }
 else {
    if (activity != null && mFragment instanceof RefreshListener) {
      Log.i(Constants.REFRESH_LOG,"String_Node_Str" + eventKey + "String_Node_Str");
      activity.notifyRefreshComplete(mFragment);
    }
  }
}

Fixed version (ground truth):
protected void onPostExecute(APIResponse.CODE code){
  View view=mFragment.getView();
  if (view != null && activity != null) {
    TextView noDataText=(TextView)view.findViewById(R.id.no_match_data);
    ExpandableListView results=(ExpandableListView)view.findViewById(R.id.match_results);
    if (code == APIResponse.CODE.NODATA || (!requestParams.forceFromCache && (groups == null || matchCount == 0))) {
      results.setVisibility(View.GONE);
      noDataText.setVisibility(View.VISIBLE);
      noDataText.setText(teamKey.isEmpty() ? R.string.no_match_data : R.string.no_team_match_data);
    }
 else {
      noDataText.setVisibility(View.GONE);
      results.setVisibility(View.VISIBLE);
      Parcelable state=results.onSaveInstanceState();
      int firstVisiblePosition=results.getFirstVisiblePosition();
      results.setAdapter(adapter);
      results.onRestoreInstanceState(state);
      results.setSelection(firstVisiblePosition);
      if (groups.size() == 1) {
        results.expandGroup(0);
      }
      adapter.notifyDataSetChanged();
    }
    if (code != APIResponse.CODE.NODATA) {
      if (event.isHappeningNow()) {
        Log.d(Constants.LOG_TAG,"String_Node_Str" + eventKey);
        EventBus.getDefault().post(new LiveEventMatchUpdateEvent(lastMatch,nextMatch));
      }
 else {
        Log.d(Constants.LOG_TAG,"String_Node_Str");
      }
    }
    view.findViewById(R.id.progress).setVisibility(View.GONE);
    if (code == APIResponse.CODE.OFFLINECACHE) {
      activity.showWarningMessage(activity.getString(R.string.warning_using_cached_data));
    }
  }
  if (code == APIResponse.CODE.LOCAL && !isCancelled()) {
    requestParams.forceFromCache=false;
    PopulateEventMatches secondLoad=new PopulateEventMatches(mFragment,requestParams);
    mFragment.updateTask(secondLoad);
    secondLoad.execute(eventKey,teamKey);
  }
 else {
    if (activity != null && mFragment instanceof RefreshListener) {
      Log.i(Constants.REFRESH_LOG,"String_Node_Str" + eventKey + "String_Node_Str");
      activity.notifyRefreshComplete(mFragment);
    }
  }
}