Program: 115279
Project: 115279
Buggy source:
@Override protected void processRequest() throws Exception {
  removeLockedCRF(ub.getId());
  FormProcessor fp=new FormProcessor(request);
  if (fp.getString("String_Node_Str").equals("String_Node_Str")) {
    showMoreLink=true;
  }
 else {
    showMoreLink=Boolean.parseBoolean(fp.getString("String_Node_Str"));
  }
  String idSetting=currentStudy.getStudyParameterConfig().getSubjectIdGeneration();
  if (idSetting.equals("String_Node_Str") || idSetting.equals("String_Node_Str")) {
    request.setAttribute("String_Node_Str",AUTO_LABEL);
  }
  if (fp.getRequest().getParameter("String_Node_Str") == null) {
    Date today=new Date(System.currentTimeMillis());
    String todayFormatted=local_df.format(today);
    if (request.getAttribute(PRESET_VALUES) != null) {
      fp.setPresetValues((HashMap)request.getAttribute(PRESET_VALUES));
    }
    fp.addPresetValue(AddNewSubjectServlet.INPUT_ENROLLMENT_DATE,todayFormatted);
    fp.addPresetValue(AddNewSubjectServlet.INPUT_EVENT_START_DATE,todayFormatted);
    setPresetValues(fp.getPresetValues());
  }
  request.setAttribute("String_Node_Str",true);
  if (fp.getString("String_Node_Str").equals("String_Node_Str") && fp.getString("String_Node_Str").trim().length() > 0) {
    StudySubjectBean studySubject=getStudySubjectDAO().findByLabelAndStudy(fp.getString("String_Node_Str"),currentStudy);
    if (studySubject.getId() > 0) {
      request.setAttribute("String_Node_Str",new Integer(studySubject.getId()).toString());
      forwardPage(Page.VIEW_STUDY_SUBJECT_SERVLET);
    }
 else {
      createTable();
    }
  }
 else {
    createTable();
  }
}

Fixed version (ground truth):
@Override protected void processRequest() throws Exception {
  removeLockedCRF(ub.getId());
  FormProcessor fp=new FormProcessor(request);
  if (fp.getString("String_Node_Str").equals("String_Node_Str")) {
    showMoreLink=true;
  }
 else {
    showMoreLink=Boolean.parseBoolean(fp.getString("String_Node_Str"));
  }
  String idSetting=currentStudy.getStudyParameterConfig().getSubjectIdGeneration();
  if (idSetting.equals("String_Node_Str") || idSetting.equals("String_Node_Str")) {
    request.setAttribute("String_Node_Str",resword.getString("String_Node_Str"));
  }
  if (fp.getRequest().getParameter("String_Node_Str") == null) {
    Date today=new Date(System.currentTimeMillis());
    String todayFormatted=local_df.format(today);
    if (request.getAttribute(PRESET_VALUES) != null) {
      fp.setPresetValues((HashMap)request.getAttribute(PRESET_VALUES));
    }
    fp.addPresetValue(AddNewSubjectServlet.INPUT_ENROLLMENT_DATE,todayFormatted);
    fp.addPresetValue(AddNewSubjectServlet.INPUT_EVENT_START_DATE,todayFormatted);
    setPresetValues(fp.getPresetValues());
  }
  request.setAttribute("String_Node_Str",true);
  if (fp.getString("String_Node_Str").equals("String_Node_Str") && fp.getString("String_Node_Str").trim().length() > 0) {
    StudySubjectBean studySubject=getStudySubjectDAO().findByLabelAndStudy(fp.getString("String_Node_Str"),currentStudy);
    if (studySubject.getId() > 0) {
      request.setAttribute("String_Node_Str",new Integer(studySubject.getId()).toString());
      forwardPage(Page.VIEW_STUDY_SUBJECT_SERVLET);
    }
 else {
      createTable();
    }
  }
 else {
    createTable();
  }
}