Program: 125067
Project: 125067
Buggy source:
@Override protected void addFieldsListeners(){
  userNameText.addModifyListener(new ModifyListener(){
    @Override public void modifyText(    final ModifyEvent e){
      getConnection().setUserName(userNameText.getText());
      checkFieldsValue();
    }
  }
);
  rowSeparatorCombo.addModifyListener(new ModifyListener(){
    @Override public void modifyText(    final ModifyEvent e){
      String separatorDisplay=rowSeparatorCombo.getText();
      EHDFSRowSeparator rowSeparator=EHDFSRowSeparator.indexOf(separatorDisplay,true);
      if (rowSeparator != null) {
        rowSeparatorText.setText(rowSeparator.getValue());
        rowSeparatorText.forceFocus();
        rowSeparatorText.selectAll();
      }
    }
  }
);
  fieldSeparatorCombo.addModifyListener(new ModifyListener(){
    @Override public void modifyText(    final ModifyEvent e){
      String separatorDisplay=fieldSeparatorCombo.getText();
      EHDFSFieldSeparator fieldSeparator=EHDFSFieldSeparator.indexOf(separatorDisplay,true);
      if (fieldSeparator != null) {
        fieldSeparatorText.setText(fieldSeparator.getValue());
        fieldSeparatorText.forceFocus();
        fieldSeparatorText.selectAll();
      }
    }
  }
);
  rowSeparatorText.addModifyListener(new ModifyListener(){
    @Override public void modifyText(    final ModifyEvent e){
      getConnection().setRowSeparator(rowSeparatorText.getText());
      checkFieldsValue();
      EHDFSRowSeparator rowSeparator=EHDFSRowSeparator.indexOf(rowSeparatorText.getText(),false);
      if (rowSeparator == null) {
        rowSeparatorCombo.deselectAll();
      }
 else {
        rowSeparatorCombo.setText(rowSeparator.getDisplayName());
      }
    }
  }
);
  fieldSeparatorText.addModifyListener(new ModifyListener(){
    @Override public void modifyText(    final ModifyEvent e){
      getConnection().setFieldSeparator(fieldSeparatorText.getText());
      checkFieldsValue();
      EHDFSFieldSeparator fieldSeparator=EHDFSFieldSeparator.indexOf(fieldSeparatorText.getText(),false);
      if (fieldSeparator == null) {
        fieldSeparatorCombo.deselectAll();
      }
 else {
        fieldSeparatorCombo.setText(fieldSeparator.getDisplayName());
      }
    }
  }
);
}

Fixed version (ground truth):
@Override protected void addFieldsListeners(){
  userNameText.addModifyListener(new ModifyListener(){
    @Override public void modifyText(    final ModifyEvent e){
      getConnection().setUserName(userNameText.getText());
      checkFieldsValue();
    }
  }
);
  rowSeparatorCombo.addModifyListener(new ModifyListener(){
    @Override public void modifyText(    final ModifyEvent e){
      String separatorDisplay=rowSeparatorCombo.getText();
      EHDFSRowSeparator rowSeparator=EHDFSRowSeparator.indexOf(separatorDisplay,true);
      if (rowSeparator != null) {
        rowSeparatorText.setText(rowSeparator.getValue());
        rowSeparatorText.forceFocus();
        rowSeparatorText.selectAll();
      }
    }
  }
);
  fieldSeparatorCombo.addModifyListener(new ModifyListener(){
    @Override public void modifyText(    final ModifyEvent e){
      String separatorDisplay=fieldSeparatorCombo.getText();
      EHDFSFieldSeparator fieldSeparator=EHDFSFieldSeparator.indexOf(separatorDisplay,true);
      if (fieldSeparator != null) {
        fieldSeparatorText.setText(fieldSeparator.getValue());
        fieldSeparatorText.forceFocus();
        fieldSeparatorText.selectAll();
      }
    }
  }
);
  rowSeparatorText.addModifyListener(new ModifyListener(){
    @Override public void modifyText(    final ModifyEvent e){
      getConnection().setRowSeparator(rowSeparatorText.getText());
      checkFieldsValue();
      EHDFSRowSeparator rowSeparator=EHDFSRowSeparator.indexOf(rowSeparatorText.getText(),false);
      if (rowSeparator == null) {
        rowSeparatorCombo.deselectAll();
      }
 else {
        String originalValue=rowSeparatorCombo.getText();
        String newValue=rowSeparator.getDisplayName();
        if (!newValue.equals(originalValue)) {
          rowSeparatorCombo.setText(newValue);
        }
      }
    }
  }
);
  fieldSeparatorText.addModifyListener(new ModifyListener(){
    @Override public void modifyText(    final ModifyEvent e){
      getConnection().setFieldSeparator(fieldSeparatorText.getText());
      checkFieldsValue();
      EHDFSFieldSeparator fieldSeparator=EHDFSFieldSeparator.indexOf(fieldSeparatorText.getText(),false);
      if (fieldSeparator == null) {
        fieldSeparatorCombo.deselectAll();
      }
 else {
        String originalValue=fieldSeparatorCombo.getText();
        String newValue=fieldSeparator.getDisplayName();
        if (!newValue.equals(originalValue)) {
          fieldSeparatorCombo.setText(newValue);
        }
      }
    }
  }
);
}