Program: 33878
Project: 33878
Buggy source:
@Override protected APIResponse.CODE doInBackground(Void... params){
  if (mFragment == null) {
    throw new IllegalArgumentException("String_Node_Str");
  }
  if (mHeader.equals("String_Node_Str")) {
    mWeek=-1;
  }
 else {
    if (!allEvents.containsKey(mYear)) {
      try {
        allEvents.put(mYear,DataManager.getEventsByYear(mFragment.getActivity(),mYear).getData());
      }
 catch (      DataManager.NoDataException e) {
        Log.w(Constants.LOG_TAG,"String_Node_Str" + mYear);
        return APIResponse.CODE.NODATA;
      }
    }
    mWeek=Event.weekNumFromLabel(allEvents.get(mYear),mHeader);
  }
  eventKeys=new ArrayList<>();
  events=new ArrayList<>();
  APIResponse<ArrayList<SimpleEvent>> response;
  if (mYear != -1 && mWeek == -1 && mTeamKey == null) {
  }
 else   if (mYear != -1 && mWeek != -1 && mTeamKey == null) {
    try {
      response=DataManager.getSimpleEventsInWeek(mFragment.getActivity(),mYear,mWeek);
      ArrayList<SimpleEvent> eventData=response.getData();
      if (eventData != null && eventData.size() > 0) {
        Collections.sort(eventData,new EventSortByTypeAndDateComparator());
        Event.TYPE lastType=null, currentType;
        for (        SimpleEvent event : eventData) {
          currentType=event.getEventType();
          if (currentType != lastType) {
            eventKeys.add(currentType.toString());
            events.add(new EventWeekHeader(currentType.toString()));
          }
          eventKeys.add(event.getEventKey());
          events.add(event.renderWithShortName());
          lastType=currentType;
        }
      }
      return response.getCode();
    }
 catch (    Exception e) {
      Log.w(Constants.LOG_TAG,"String_Node_Str" + mWeek + "String_Node_Str"+ mYear);
      e.printStackTrace();
    }
  }
 else   if (mYear != -1 && mWeek == -1 && mTeamKey != null) {
    try {
      response=DataManager.getSimpleEventsForTeamInYear(mFragment.getActivity(),mTeamKey,mYear);
      ArrayList<SimpleEvent> eventsArray=response.getData();
      Collections.sort(eventsArray,new EventSortByTypeAndDateComparator());
      Event.TYPE lastType=null, currentType;
      for (      SimpleEvent event : eventsArray) {
        currentType=event.getEventType();
        if (currentType != lastType) {
          eventKeys.add(currentType.toString());
          events.add(new EventWeekHeader(currentType.toString()));
        }
        eventKeys.add(event.getEventKey());
        events.add(event.renderWithShortName());
        lastType=currentType;
      }
      return response.getCode();
    }
 catch (    Exception e) {
      Log.w(Constants.LOG_TAG,"String_Node_Str");
      e.printStackTrace();
    }
  }
 else   if (mYear != -1 && mWeek != -1 && mTeamKey != null) {
  }
  return APIResponse.CODE.NODATA;
}

Fixed version (ground truth):
@Override protected APIResponse.CODE doInBackground(Void... params){
  if (mFragment == null) {
    throw new IllegalArgumentException("String_Node_Str");
  }
  if (mHeader.equals("String_Node_Str")) {
    mWeek=-1;
  }
 else {
    if (!allEvents.containsKey(mYear)) {
      try {
        allEvents.put(mYear,DataManager.getEventsByYear(mFragment.getActivity(),mYear).getData());
      }
 catch (      DataManager.NoDataException e) {
        Log.w(Constants.LOG_TAG,"String_Node_Str" + mYear);
        return APIResponse.CODE.NODATA;
      }
    }
    mWeek=Event.weekNumFromLabel(allEvents.get(mYear),mHeader);
  }
  eventKeys=new ArrayList<>();
  events=new ArrayList<>();
  APIResponse<ArrayList<SimpleEvent>> response;
  if (mYear != -1 && mWeek == -1 && mTeamKey == null) {
  }
 else   if (mYear != -1 && mWeek != -1 && mTeamKey == null) {
    try {
      response=DataManager.getSimpleEventsInWeek(mFragment.getActivity(),mYear,mWeek);
      ArrayList<SimpleEvent> eventData=response.getData();
      if (eventData != null && eventData.size() > 0) {
        Collections.sort(eventData,new EventSortByTypeAndDateComparator());
        Event.TYPE lastType=null, currentType;
        for (        SimpleEvent event : eventData) {
          currentType=event.getEventType();
          if (currentType != lastType) {
            eventKeys.add(currentType.toString());
            events.add(new EventWeekHeader(currentType.toString()));
          }
          eventKeys.add(event.getEventKey());
          if (event.getShortName().isEmpty() || event.getShortName() == null) {
            events.add(event.render());
          }
 else {
            events.add(event.renderWithShortName());
          }
          lastType=currentType;
        }
      }
      return response.getCode();
    }
 catch (    Exception e) {
      Log.w(Constants.LOG_TAG,"String_Node_Str" + mWeek + "String_Node_Str"+ mYear);
      e.printStackTrace();
    }
  }
 else   if (mYear != -1 && mWeek == -1 && mTeamKey != null) {
    try {
      response=DataManager.getSimpleEventsForTeamInYear(mFragment.getActivity(),mTeamKey,mYear);
      ArrayList<SimpleEvent> eventsArray=response.getData();
      Collections.sort(eventsArray,new EventSortByTypeAndDateComparator());
      Event.TYPE lastType=null, currentType;
      for (      SimpleEvent event : eventsArray) {
        currentType=event.getEventType();
        if (currentType != lastType) {
          eventKeys.add(currentType.toString());
          events.add(new EventWeekHeader(currentType.toString()));
        }
        eventKeys.add(event.getEventKey());
        events.add(event.renderWithShortName());
        lastType=currentType;
      }
      return response.getCode();
    }
 catch (    Exception e) {
      Log.w(Constants.LOG_TAG,"String_Node_Str");
      e.printStackTrace();
    }
  }
 else   if (mYear != -1 && mWeek != -1 && mTeamKey != null) {
  }
  return APIResponse.CODE.NODATA;
}