Program: 140473
Project: 140473
Buggy source:
private void initWizard(){
  if (!AbstractIndicatorForm.isParametersEmpty()) {
    AbstractIndicatorForm.emptyParameterList();
  }
  IndicatorParameters indicatorParam=indicatorUnit.getIndicator().getParameters();
  if (indicatorParam != null) {
    TextParameters textParameters=indicatorParam.getTextParameter();
    if (textParameters != null) {
      TextParameter textParam=new TextParameter();
      textParam.setIngoreCase(textParameters.isIgnoreCase());
      textParam.setNumOfShown(indicatorParam.getTopN());
      TextLengthParameter textLengthParam=new TextLengthParameter();
      textLengthParam.setUseBlank(textParameters.isUseBlank());
      textLengthParam.setUseNull(textParameters.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 (indicatorParam.getBins() != null) {
      BinsDesignerParameter binsParam=new BinsDesignerParameter();
      binsParam.setMaxValue(DomainHelper.getMaxBinValue(indicatorParam.getBins()));
      binsParam.setMinValue(DomainHelper.getMinBinValue(indicatorParam.getBins()));
      binsParam.setNumOfBins(DomainHelper.getNumberOfBins(indicatorParam.getBins()));
      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=indicatorUnit.getIndicator().getParameters();
  if (indicatorParam != null) {
    TextParameters textParameters=indicatorParam.getTextParameter();
    if (textParameters != null) {
      TextParameter textParam=new TextParameter();
      textParam.setIngoreCase(textParameters.isIgnoreCase());
      textParam.setNumOfShown(indicatorParam.getTopN());
      TextLengthParameter textLengthParam=new TextLengthParameter();
      textLengthParam.setUseBlank(textParameters.isUseBlank());
      textLengthParam.setUseNull(textParameters.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);
    }
    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);
    }
  }
}