Program: 127962
Project: 127962
Buggy source:
/** 
 * Initialize value, forceFocus first field.
 */
@Override protected void initialize(){
  if (getConnection().getEncoding() != null && !getConnection().getEncoding().equals("String_Node_Str")) {
    encodingCombo.setText(getConnection().getEncoding());
  }
 else {
    encodingCombo.select(0);
  }
  fieldSeparatorCombo.setText(getConnection().getFieldSeparatorType().getName());
  fieldSeparatorText.setText(getConnection().getFieldSeparatorValue());
  fieldSeparatorText.setEditable(false);
  rowSeparatorCombo.setText(getConnection().getRowSeparatorType().getLiteral());
  rowSeparatorText.setText(getConnection().getRowSeparatorValue());
  rowSeparatorText.setEditable(false);
  if (!isContextMode()) {
    fieldSeparatorManager();
    rowSeparatorManager();
  }
  boolean flag=false;
  getConnection().setUseHeader(flag);
  flag=initRowsToSkip(rowsToSkipFooterCheckboxCombo,getConnection().getFooterValue());
  getConnection().setUseFooter(flag);
  flag=initRowsToSkip(rowsToSkipLimitCheckboxCombo,getConnection().getLimitValue());
  getConnection().setUseLimit(flag);
  emptyRowsToSkipCheckbox.setSelection(getConnection().isRemoveEmptyRow());
  firstRowIsCaptionCheckbox.setSelection(false);
  String textEnclosure=getConnection().getTextEnclosure();
  String textEnclosureValue=ShadowProcessHelper.getValueFromArray(textEnclosure,TEXT_ENCLOSURE_DATA);
  if (textEnclosureValue == null) {
    textEnclosureCombo.select(0);
  }
 else {
    textEnclosureCombo.setText(textEnclosureValue);
  }
  String escapeChar=getConnection().getEscapeChar();
  String escapeCharValue=ShadowProcessHelper.getValueFromArray(escapeChar,ESCAPE_CHAR_DATA);
  if (escapeCharValue == null) {
    escapeCharCombo.select(0);
  }
 else {
    escapeCharCombo.setText(escapeCharValue);
  }
  splitwayRecordForJavaFID.setSelection(getConnection().isSplitRecord());
  if (Escape.DELIMITED.equals(getConnection().getEscapeType())) {
    csvRadio.setSelection(false);
    delimitedRadio.setSelection(true);
    textEnclosureCombo.setEnabled(false);
    escapeCharCombo.setEnabled(false);
    splitwayRecordForJavaFID.setEnabled(true);
  }
  if (Escape.CSV.equals(getConnection().getEscapeType())) {
    csvRadio.setSelection(true);
    delimitedRadio.setSelection(false);
    splitwayRecordForJavaFID.setEnabled(false);
  }
  String s=getConnection().getEscapeChar();
  if (!(s == null) && !s.equals("String_Node_Str") && !s.equals(EMPTY_VALUE)) {
    escapeCharCombo.setText(s);
  }
  s=getConnection().getTextEnclosure();
  if (!(s == null) && !s.equals("String_Node_Str") && !s.equals(EMPTY_VALUE)) {
    textEnclosureCombo.setText(s);
  }
  encodingCombo.clearSelection();
  fieldSeparatorCombo.clearSelection();
  rowSeparatorCombo.clearSelection();
  escapeCharCombo.clearSelection();
  textEnclosureCombo.clearSelection();
  emptyRowsToSkipCheckbox.setSelection(getConnection().isRemoveEmptyRow());
  checkFieldsValue();
  if (isContextMode()) {
    adaptFormToEditable();
  }
}

Fixed version (ground truth):
/** 
 * Initialize value, forceFocus first field.
 */
@Override protected void initialize(){
  if (getConnection().getEncoding() != null && !getConnection().getEncoding().equals("String_Node_Str")) {
    encodingCombo.setText(getConnection().getEncoding());
  }
 else {
    encodingCombo.select(0);
  }
  fieldSeparatorCombo.setText(getConnection().getFieldSeparatorType().getName());
  fieldSeparatorText.setText(getConnection().getFieldSeparatorValue());
  fieldSeparatorText.setEditable(false);
  rowSeparatorCombo.setText(getConnection().getRowSeparatorType().getLiteral());
  rowSeparatorText.setText(getConnection().getRowSeparatorValue());
  rowSeparatorText.setEditable(false);
  if (!isContextMode()) {
    fieldSeparatorManager();
    rowSeparatorManager();
  }
  boolean flag=false;
  flag=initRowsToSkip(rowsToSkipHeaderCheckboxCombo,getConnection().getHeaderValue());
  getConnection().setUseHeader(flag);
  flag=initRowsToSkip(rowsToSkipFooterCheckboxCombo,getConnection().getFooterValue());
  getConnection().setUseFooter(flag);
  flag=initRowsToSkip(rowsToSkipLimitCheckboxCombo,getConnection().getLimitValue());
  getConnection().setUseLimit(flag);
  emptyRowsToSkipCheckbox.setSelection(getConnection().isRemoveEmptyRow());
  firstRowIsCaptionCheckbox.setSelection(getConnection().isFirstLineCaption());
  String textEnclosure=getConnection().getTextEnclosure();
  String textEnclosureValue=ShadowProcessHelper.getValueFromArray(textEnclosure,TEXT_ENCLOSURE_DATA);
  if (textEnclosureValue == null) {
    textEnclosureCombo.select(0);
  }
 else {
    textEnclosureCombo.setText(textEnclosureValue);
  }
  String escapeChar=getConnection().getEscapeChar();
  String escapeCharValue=ShadowProcessHelper.getValueFromArray(escapeChar,ESCAPE_CHAR_DATA);
  if (escapeCharValue == null) {
    escapeCharCombo.select(0);
  }
 else {
    escapeCharCombo.setText(escapeCharValue);
  }
  splitwayRecordForJavaFID.setSelection(getConnection().isSplitRecord());
  if (Escape.DELIMITED.equals(getConnection().getEscapeType())) {
    csvRadio.setSelection(false);
    delimitedRadio.setSelection(true);
    textEnclosureCombo.setEnabled(false);
    escapeCharCombo.setEnabled(false);
    splitwayRecordForJavaFID.setEnabled(true);
  }
  if (Escape.CSV.equals(getConnection().getEscapeType())) {
    csvRadio.setSelection(true);
    delimitedRadio.setSelection(false);
    splitwayRecordForJavaFID.setEnabled(false);
  }
  String s=getConnection().getEscapeChar();
  if (!(s == null) && !s.equals("String_Node_Str") && !s.equals(EMPTY_VALUE)) {
    escapeCharCombo.setText(s);
  }
  s=getConnection().getTextEnclosure();
  if (!(s == null) && !s.equals("String_Node_Str") && !s.equals(EMPTY_VALUE)) {
    textEnclosureCombo.setText(s);
  }
  encodingCombo.clearSelection();
  fieldSeparatorCombo.clearSelection();
  rowSeparatorCombo.clearSelection();
  escapeCharCombo.clearSelection();
  textEnclosureCombo.clearSelection();
  emptyRowsToSkipCheckbox.setSelection(getConnection().isRemoveEmptyRow());
  checkFieldsValue();
  if (isContextMode()) {
    adaptFormToEditable();
  }
}