Program: 115090
Project: 115090
Buggy source:
private ExportSubjectDataBean setExportSubjectDataBean(StudySubject studySubj,Study study,List<StudyEvent> studyEvents,String formVersionOID){
  ExportSubjectDataBean exportSubjectDataBean=new ExportSubjectDataBean();
  if (subjectBelongsToStudy(study,studySubj)) {
    if (studySubj.getSubject().getDateOfBirth() != null)     exportSubjectDataBean.setDateOfBirth(studySubj.getSubject().getDateOfBirth() + "String_Node_Str");
    exportSubjectDataBean.setSubjectGender(studySubj.getSubject().getGender() + "String_Node_Str");
    for (    SubjectGroupMap subjGrpMap : studySubj.getSubjectGroupMaps()) {
      SubjectGroupDataBean subjGrpDataBean=new SubjectGroupDataBean();
      subjGrpDataBean.setStudyGroupClassId("String_Node_Str" + subjGrpMap.getStudyGroupClass().getStudyGroupClassId());
      subjGrpDataBean.setStudyGroupClassName(subjGrpMap.getStudyGroup().getStudyGroupClass().getName());
      subjGrpDataBean.setStudyGroupName(subjGrpMap.getStudyGroup().getName());
      exportSubjectDataBean.getSubjectGroupData().add(subjGrpDataBean);
    }
    exportSubjectDataBean.setStudySubjectId(studySubj.getLabel());
    if (studySubj.getSubject().getUniqueIdentifier() != null)     exportSubjectDataBean.setUniqueIdentifier(studySubj.getSubject().getUniqueIdentifier());
    exportSubjectDataBean.setSecondaryId(studySubj.getSecondaryLabel());
    exportSubjectDataBean.setStatus(studySubj.getStatus().toString());
    if (isCollectAudits())     exportSubjectDataBean.setAuditLogs(fetchAuditLogs(studySubj.getStudySubjectId(),"String_Node_Str",studySubj.getOcOid(),"String_Node_Str"));
    AuditLogsBean logs=fetchAuditLogs(studySubj.getStudySubjectId(),"String_Node_Str",studySubj.getOcOid(),"String_Node_Str");
    exportSubjectDataBean.getAuditLogs().getAuditLogs().addAll(logs.getAuditLogs());
    if (isCollectDns())     exportSubjectDataBean.setDiscrepancyNotes(fetchDiscrepancyNotes(studySubj));
    exportSubjectDataBean.setExportStudyEventData(setExportStudyEventDataBean(studySubj,studyEvents,formVersionOID));
    exportSubjectDataBean.setSubjectOID(studySubj.getOcOid());
    exportSubjectDataBean.setEnrollmentDate(studySubj.getEnrollmentDate() + "String_Node_Str");
  }
  return exportSubjectDataBean;
}

Fixed version (ground truth):
private ExportSubjectDataBean setExportSubjectDataBean(StudySubject studySubj,Study study,List<StudyEvent> studyEvents,String formVersionOID){
  ExportSubjectDataBean exportSubjectDataBean=new ExportSubjectDataBean();
  if (subjectBelongsToStudy(study,studySubj)) {
    if (studySubj.getSubject().getDateOfBirth() != null)     exportSubjectDataBean.setDateOfBirth(studySubj.getSubject().getDateOfBirth() + "String_Node_Str");
    exportSubjectDataBean.setSubjectGender(studySubj.getSubject().getGender() + "String_Node_Str");
    for (    SubjectGroupMap subjGrpMap : studySubj.getSubjectGroupMaps()) {
      SubjectGroupDataBean subjGrpDataBean=new SubjectGroupDataBean();
      subjGrpDataBean.setStudyGroupClassId("String_Node_Str" + subjGrpMap.getStudyGroupClass().getStudyGroupClassId());
      subjGrpDataBean.setStudyGroupClassName(subjGrpMap.getStudyGroup().getStudyGroupClass().getName());
      subjGrpDataBean.setStudyGroupName(subjGrpMap.getStudyGroup().getName());
      exportSubjectDataBean.getSubjectGroupData().add(subjGrpDataBean);
    }
    exportSubjectDataBean.setStudySubjectId(studySubj.getLabel());
    if (studySubj.getSubject().getUniqueIdentifier() != null)     exportSubjectDataBean.setUniqueIdentifier(studySubj.getSubject().getUniqueIdentifier());
    exportSubjectDataBean.setSecondaryId(studySubj.getSecondaryLabel());
    exportSubjectDataBean.setStatus(studySubj.getStatus().toString());
    if (isCollectAudits())     exportSubjectDataBean.setAuditLogs(fetchAuditLogs(studySubj.getStudySubjectId(),"String_Node_Str",studySubj.getOcOid(),"String_Node_Str"));
    AuditLogsBean logs=fetchAuditLogs(studySubj.getStudySubjectId(),"String_Node_Str",studySubj.getOcOid(),null);
    exportSubjectDataBean.getAuditLogs().getAuditLogs().addAll(logs.getAuditLogs());
    if (isCollectDns())     exportSubjectDataBean.setDiscrepancyNotes(fetchDiscrepancyNotes(studySubj));
    exportSubjectDataBean.setExportStudyEventData(setExportStudyEventDataBean(studySubj,studyEvents,formVersionOID));
    exportSubjectDataBean.setSubjectOID(studySubj.getOcOid());
    exportSubjectDataBean.setEnrollmentDate(studySubj.getEnrollmentDate() + "String_Node_Str");
  }
  return exportSubjectDataBean;
}