Program: 140344
Project: 140344
Buggy source:
private void initWizard(){
  if (!AbstractIndicatorForm.isParametersEmpty()) {
    AbstractIndicatorForm.emptyParameterList();
  }
  IndicatorParameters indicatorParam=indicator.getParameters();
  if (indicatorParam != null) {
    NumbericNominalParameter numbericNominalParameter=new NumbericNominalParameter();
    numbericNominalParameter.setNumberOfShown(indicatorParam.getTopN());
    paramMap.put(FormEnum.NumbericNominalForm,numbericNominalParameter);
    if (indicatorParam.getTextParameter() != null) {
      TextParameter textParam=new TextParameter();
      textParam.setIngoreCase(indicatorParam.getTextParameter().isIgnoreCase());
      textParam.setNumOfShown(indicatorParam.getTopN());
      TextLengthParameter textLengthParam=new TextLengthParameter();
      textLengthParam.setUseBlank(indicatorParam.getTextParameter().isUseBlank());
      textLengthParam.setUseNull(indicatorParam.getTextParameter().isUseNulls());
      paramMap.put(FormEnum.TextParametersForm,textParam);
      paramMap.put(FormEnum.TextLengthForm,textLengthParam);
    }
    if (IndicatorHelper.getDataThreshold(indicator) != null) {
      DataThresholdsParameter dataParam=new DataThresholdsParameter();
      dataParam.setMinThreshold(IndicatorHelper.getDataThreshold(indicator)[0]);
      dataParam.setMaxThreshold(IndicatorHelper.getDataThreshold(indicator)[1]);
      paramMap.put(FormEnum.DataThresholdsForm,dataParam);
    }
    if (IndicatorHelper.getIndicatorThreshold(indicator) != null) {
      IndicatorThresholdsParameter indicatorThresholdsParam=new IndicatorThresholdsParameter();
      indicatorThresholdsParam.setMinThreshold(IndicatorHelper.getIndicatorThreshold(indicator)[0]);
      indicatorThresholdsParam.setMaxThreshold(IndicatorHelper.getIndicatorThreshold(indicator)[1]);
      paramMap.put(FormEnum.IndicatorThresholdsForm,indicatorThresholdsParam);
    }
    if (IndicatorHelper.getExpectedValue(indicator) != null) {
      ExpectedValueParameter expectedParam=new ExpectedValueParameter();
      expectedParam.setExpectedValue(IndicatorHelper.getExpectedValue(indicator));
      paramMap.put(FormEnum.ExpectedValueForm,expectedParam);
    }
    Domain domain=indicatorParam.getBins();
    if (domain != null) {
      BinsDesignerParameter binsParam=new BinsDesignerParameter();
      binsParam.setDomain(domain);
      binsParam.setMaxValue(DomainHelper.getMaxBinValue(domain));
      binsParam.setMinValue(DomainHelper.getMinBinValue(domain));
      binsParam.setNumOfBins(DomainHelper.getNumberOfBins(domain));
      binsParam.setNumOfShown(indicatorParam.getTopN());
      paramMap.put(FormEnum.BinsDesignerForm,binsParam);
    }
    if (indicatorParam.getDateParameters() != null) {
      TimeSlicesParameter timeParam=new TimeSlicesParameter();
      timeParam.setDataUnit(indicatorParam.getDateParameters().getDateAggregationType().getLiteral());
      timeParam.setNumOfShown(indicatorParam.getTopN());
      paramMap.put(FormEnum.TimeSlicesForm,timeParam);
    }
  }
}

Fixed version (ground truth):
private void initWizard(){
  if (!AbstractIndicatorForm.isParametersEmpty()) {
    AbstractIndicatorForm.emptyParameterList();
  }
  IndicatorParameters indicatorParam=indicator.getParameters();
  if (indicatorParam != null) {
    int topN=indicatorParam.getTopN();
    NumbericNominalParameter numbericNominalParameter=new NumbericNominalParameter();
    numbericNominalParameter.setNumberOfShown(topN);
    BinsDesignerParameter binsParam=new BinsDesignerParameter();
    binsParam.setNumOfShown(topN);
    TimeSlicesParameter timeParam=new TimeSlicesParameter();
    timeParam.setNumOfShown(topN);
    paramMap.put(FormEnum.NumbericNominalForm,numbericNominalParameter);
    if (indicatorParam.getTextParameter() != null) {
      TextParameter textParam=new TextParameter();
      textParam.setIngoreCase(indicatorParam.getTextParameter().isIgnoreCase());
      textParam.setNumOfShown(topN);
      TextLengthParameter textLengthParam=new TextLengthParameter();
      textLengthParam.setUseBlank(indicatorParam.getTextParameter().isUseBlank());
      textLengthParam.setUseNull(indicatorParam.getTextParameter().isUseNulls());
      paramMap.put(FormEnum.TextParametersForm,textParam);
      paramMap.put(FormEnum.TextLengthForm,textLengthParam);
    }
    if (IndicatorHelper.getDataThreshold(indicator) != null) {
      DataThresholdsParameter dataParam=new DataThresholdsParameter();
      dataParam.setMinThreshold(IndicatorHelper.getDataThreshold(indicator)[0]);
      dataParam.setMaxThreshold(IndicatorHelper.getDataThreshold(indicator)[1]);
      paramMap.put(FormEnum.DataThresholdsForm,dataParam);
    }
    if (IndicatorHelper.getIndicatorThreshold(indicator) != null) {
      IndicatorThresholdsParameter indicatorThresholdsParam=new IndicatorThresholdsParameter();
      indicatorThresholdsParam.setMinThreshold(IndicatorHelper.getIndicatorThreshold(indicator)[0]);
      indicatorThresholdsParam.setMaxThreshold(IndicatorHelper.getIndicatorThreshold(indicator)[1]);
      paramMap.put(FormEnum.IndicatorThresholdsForm,indicatorThresholdsParam);
    }
    if (IndicatorHelper.getExpectedValue(indicator) != null) {
      ExpectedValueParameter expectedParam=new ExpectedValueParameter();
      expectedParam.setExpectedValue(IndicatorHelper.getExpectedValue(indicator));
      paramMap.put(FormEnum.ExpectedValueForm,expectedParam);
    }
    Domain domain=indicatorParam.getBins();
    if (domain != null) {
      binsParam.setDomain(domain);
      binsParam.setMaxValue(DomainHelper.getMaxBinValue(domain));
      binsParam.setMinValue(DomainHelper.getMinBinValue(domain));
      binsParam.setNumOfBins(DomainHelper.getNumberOfBins(domain));
    }
    paramMap.put(FormEnum.BinsDesignerForm,binsParam);
    if (indicatorParam.getDateParameters() != null) {
      timeParam.setDataUnit(indicatorParam.getDateParameters().getDateAggregationType().getLiteral());
    }
    paramMap.put(FormEnum.TimeSlicesForm,timeParam);
  }
}