Program: 117971
Project: 117971
Buggy source:
private void initCurrnentModel(){
  currentModel=new MapperSettingModel();
  currentModel.setReplicatedJoin(defaultModel.isReplicatedJoin());
  currentModel.setDieOnError(defaultModel.isDieOnError());
  currentModel.setLookInParallel(defaultModel.isLookInParallel());
  currentModel.setEnableAutoConvertType(defaultModel.isEnableAutoConvertType());
  currentModel.setTempDataDir(defaultModel.getTempDataDir());
  currentModel.setRowBufferSize(defaultModel.getRowBufferSize());
  AbstractMapComponent component=manager.getAbstractMapComponent();
  IElementParameter parameter=component.getElementParameter(REPLICATED_JOIN);
  if (parameter != null && parameter.getValue() != null && parameter.getValue() instanceof Boolean) {
    currentModel.setReplicatedJoin((Boolean)parameter.getValue());
  }
  parameter=component.getElementParameter(TEMPORARY_DATA_DIRECTORY);
  if (parameter != null && parameter.getValue() != null) {
    currentModel.setTempDataDir(String.valueOf(parameter.getValue()));
  }
  parameter=component.getElementParameter(ROWS_BUFFER_SIZE);
  if (parameter != null && parameter.getValue() != null) {
    currentModel.setRowBufferSize(String.valueOf(parameter.getValue()));
  }
  boolean parallel=false;
  IElementParameter paraEle=component.getElementParameter(LOOKUP_IN_PARALLEL);
  if (paraEle != null) {
    parallel=(Boolean)paraEle.getValue();
  }
  currentModel.setLookInParallel(parallel);
  parameter=component.getElementParameter(ENABLE_AUTO_CONVERT_TYPE);
  if (parameter != null && parameter.getValue() != null && parameter.getValue() instanceof Boolean) {
    currentModel.setEnableAutoConvertType((Boolean)parameter.getValue());
  }
}

Fixed version (ground truth):
private void initCurrnentModel(){
  currentModel=new MapperSettingModel();
  currentModel.setReplicatedJoin(defaultModel.isReplicatedJoin());
  currentModel.setDieOnError(defaultModel.isDieOnError());
  currentModel.setLookInParallel(defaultModel.isLookInParallel());
  currentModel.setEnableAutoConvertType(defaultModel.isEnableAutoConvertType());
  currentModel.setTempDataDir(defaultModel.getTempDataDir());
  currentModel.setRowBufferSize(defaultModel.getRowBufferSize());
  AbstractMapComponent component=manager.getAbstractMapComponent();
  IElementParameter parameter=component.getElementParameter(DIE_ON_ERROR);
  if (parameter != null && parameter.getValue() != null && parameter.getValue() instanceof Boolean) {
    currentModel.setDieOnError((Boolean)parameter.getValue());
  }
  parameter=component.getElementParameter(REPLICATED_JOIN);
  if (parameter != null && parameter.getValue() != null && parameter.getValue() instanceof Boolean) {
    currentModel.setReplicatedJoin((Boolean)parameter.getValue());
  }
  parameter=component.getElementParameter(TEMPORARY_DATA_DIRECTORY);
  if (parameter != null && parameter.getValue() != null) {
    currentModel.setTempDataDir(String.valueOf(parameter.getValue()));
  }
  parameter=component.getElementParameter(ROWS_BUFFER_SIZE);
  if (parameter != null && parameter.getValue() != null) {
    currentModel.setRowBufferSize(String.valueOf(parameter.getValue()));
  }
  boolean parallel=false;
  IElementParameter paraEle=component.getElementParameter(LOOKUP_IN_PARALLEL);
  if (paraEle != null) {
    parallel=(Boolean)paraEle.getValue();
  }
  currentModel.setLookInParallel(parallel);
  parameter=component.getElementParameter(ENABLE_AUTO_CONVERT_TYPE);
  if (parameter != null && parameter.getValue() != null && parameter.getValue() instanceof Boolean) {
    currentModel.setEnableAutoConvertType((Boolean)parameter.getValue());
  }
}