Program: 47747
Project: 47747
Buggy source:
protected void setMeta(AvroInputMeta avroMeta){
  avroMeta.setFilename(m_avroFilenameText.getText());
  avroMeta.setSchemaFilename(m_schemaFilenameText.getText());
  avroMeta.setAvroIsJsonEncoded(m_jsonEncodedBut.getSelection());
  avroMeta.setAvroInField(m_sourceInFieldBut.getSelection());
  avroMeta.setAvroFieldName(m_avroFieldNameText.getText());
  if (!Const.isEmpty(m_avroFieldNameText.getText())) {
    avroMeta.setAvroInField(true);
  }
 else {
    avroMeta.setAvroInField(false);
  }
  int numNonEmpty=m_fieldsView.nrNonEmpty();
  if (numNonEmpty > 0) {
    List<AvroInputMeta.AvroField> outputFields=new ArrayList<AvroInputMeta.AvroField>();
    for (int i=0; i < numNonEmpty; i++) {
      TableItem item=m_fieldsView.getNonEmpty(i);
      AvroInputMeta.AvroField newField=new AvroInputMeta.AvroField();
      newField.m_fieldName=item.getText(1).trim();
      newField.m_fieldPath=item.getText(2).trim();
      newField.m_kettleType=item.getText(3).trim();
      if (!Const.isEmpty(item.getText(4))) {
        newField.m_indexedVals=AvroInputMeta.indexedValsList(item.getText(4).trim());
      }
      outputFields.add(newField);
    }
    avroMeta.setAvroFields(outputFields);
  }
  numNonEmpty=m_lookupView.nrNonEmpty();
  if (numNonEmpty > 0) {
    List<AvroInputMeta.LookupField> varFields=new ArrayList<AvroInputMeta.LookupField>();
    for (int i=0; i < numNonEmpty; i++) {
      TableItem item=m_lookupView.getNonEmpty(i);
      AvroInputMeta.LookupField newField=new AvroInputMeta.LookupField();
      boolean add=false;
      newField.m_fieldName=item.getText(1).trim();
      if (!Const.isEmpty(item.getText(2))) {
        newField.m_variableName=item.getText(2).trim();
        add=true;
        if (!Const.isEmpty(item.getText(3))) {
          newField.m_defaultValue=item.getText(3).trim();
        }
      }
      if (add) {
        varFields.add(newField);
      }
    }
    avroMeta.setLookupFields(varFields);
  }
}

Fixed version (ground truth):
protected void setMeta(AvroInputMeta avroMeta){
  avroMeta.setFilename(m_avroFilenameText.getText());
  avroMeta.setSchemaFilename(m_schemaFilenameText.getText());
  avroMeta.setAvroIsJsonEncoded(m_jsonEncodedBut.getSelection());
  avroMeta.setAvroInField(m_sourceInFieldBut.getSelection());
  avroMeta.setAvroFieldName(m_avroFieldNameText.getText());
  int numNonEmpty=m_fieldsView.nrNonEmpty();
  if (numNonEmpty > 0) {
    List<AvroInputMeta.AvroField> outputFields=new ArrayList<AvroInputMeta.AvroField>();
    for (int i=0; i < numNonEmpty; i++) {
      TableItem item=m_fieldsView.getNonEmpty(i);
      AvroInputMeta.AvroField newField=new AvroInputMeta.AvroField();
      newField.m_fieldName=item.getText(1).trim();
      newField.m_fieldPath=item.getText(2).trim();
      newField.m_kettleType=item.getText(3).trim();
      if (!Const.isEmpty(item.getText(4))) {
        newField.m_indexedVals=AvroInputMeta.indexedValsList(item.getText(4).trim());
      }
      outputFields.add(newField);
    }
    avroMeta.setAvroFields(outputFields);
  }
  numNonEmpty=m_lookupView.nrNonEmpty();
  if (numNonEmpty > 0) {
    List<AvroInputMeta.LookupField> varFields=new ArrayList<AvroInputMeta.LookupField>();
    for (int i=0; i < numNonEmpty; i++) {
      TableItem item=m_lookupView.getNonEmpty(i);
      AvroInputMeta.LookupField newField=new AvroInputMeta.LookupField();
      boolean add=false;
      newField.m_fieldName=item.getText(1).trim();
      if (!Const.isEmpty(item.getText(2))) {
        newField.m_variableName=item.getText(2).trim();
        add=true;
        if (!Const.isEmpty(item.getText(3))) {
          newField.m_defaultValue=item.getText(3).trim();
        }
      }
      if (add) {
        varFields.add(newField);
      }
    }
    avroMeta.setLookupFields(varFields);
  }
}