Program: 11531
Project: 11531
Buggy source:
@Override public void initParameters(){
  OperatorUIUtils.initParamList(bandList,getBandNames(),(Object[])paramMap.get("String_Node_Str"));
  if (sourceProducts != null) {
    final MetadataElement absRoot=AbstractMetadata.getAbstractedMetadata(sourceProducts[0]);
    if (absRoot != null) {
      final String sampleType=absRoot.getAttributeString(AbstractMetadata.SAMPLE_TYPE);
      if (sampleType.equals("String_Node_Str")) {
        auxFile.removeItem(CalibrationOp.PRODUCT_AUX);
        auxFile.setSelectedItem(paramMap.get("String_Node_Str"));
      }
 else {
        if (auxFile.getItemCount() == 2) {
          auxFile.addItem(CalibrationOp.PRODUCT_AUX);
        }
        auxFile.setSelectedItem(CalibrationOp.PRODUCT_AUX);
      }
      final String mission=absRoot.getAttributeString(AbstractMetadata.MISSION);
      if (!mission.equals("String_Node_Str")) {
        auxFile.setEnabled(false);
        auxFileLabel.setEnabled(false);
      }
 else {
        auxFile.setEnabled(true);
        auxFileLabel.setEnabled(true);
      }
      DialogUtils.enableComponents(auxFileLabel,auxFile,true);
      DialogUtils.enableComponents(bandListLabel,bandListPane,true);
      saveInComplexCheckBox.setVisible(true);
      saveInDbCheckBox.setVisible(true);
      createGamma0VirtualBandCheckBox.setVisible(true);
      createBeta0VirtualBandCheckBox.setVisible(true);
      DialogUtils.enableComponents(polListLabel,polListPane,false);
      outputSigmaBandCheckBox.setVisible(false);
      outputGammaBandCheckBox.setVisible(false);
      outputBetaBandCheckBox.setVisible(false);
      outputDNBandCheckBox.setVisible(false);
      if (mission.equals("String_Node_Str") && sampleType.equals("String_Node_Str")) {
        saveInComplexCheckBox.setEnabled(true);
        saveInComplexCheckBox.setSelected(false);
        if (saveInComplex) {
          saveInDbCheckBox.setEnabled(false);
          createGamma0VirtualBandCheckBox.setEnabled(false);
          createBeta0VirtualBandCheckBox.setEnabled(false);
          saveInDbCheckBox.setSelected(false);
          createGamma0VirtualBandCheckBox.setSelected(false);
          createBeta0VirtualBandCheckBox.setSelected(false);
        }
 else {
          saveInDbCheckBox.setEnabled(true);
          createGamma0VirtualBandCheckBox.setEnabled(true);
          createBeta0VirtualBandCheckBox.setEnabled(true);
        }
      }
 else       if (mission.startsWith("String_Node_Str")) {
        final String[] polarisations=Sentinel1Utils.getProductPolarizations(absRoot);
        polList.setListData(polarisations);
        OperatorUIUtils.initParamList(polList,polarisations);
        DialogUtils.enableComponents(auxFileLabel,auxFile,false);
        DialogUtils.enableComponents(externalAuxFileLabel,externalAuxFile,false);
        DialogUtils.enableComponents(bandListLabel,bandListPane,false);
        saveInComplexCheckBox.setVisible(false);
        saveInDbCheckBox.setVisible(false);
        createGamma0VirtualBandCheckBox.setVisible(false);
        createBeta0VirtualBandCheckBox.setVisible(false);
        DialogUtils.enableComponents(polListLabel,polListPane,true);
        outputSigmaBandCheckBox.setVisible(true);
        outputGammaBandCheckBox.setVisible(true);
        outputBetaBandCheckBox.setVisible(true);
        outputDNBandCheckBox.setVisible(true);
      }
 else {
        saveInComplexCheckBox.setEnabled(false);
        saveInComplexCheckBox.setSelected(false);
      }
    }
  }
 else {
    auxFile.setSelectedItem(paramMap.get("String_Node_Str"));
  }
  final File extFile=(File)paramMap.get("String_Node_Str");
  if (extFile != null) {
    externalAuxFile.setText(extFile.getAbsolutePath());
  }
  Boolean paramVal;
  paramVal=(Boolean)paramMap.get("String_Node_Str");
  if (paramVal != null) {
    saveInComplex=paramVal;
    saveInComplexCheckBox.setSelected(saveInComplex);
  }
  paramVal=(Boolean)paramMap.get("String_Node_Str");
  if (paramVal != null) {
    saveInDb=paramVal;
    saveInDbCheckBox.setSelected(saveInDb);
  }
  paramVal=(Boolean)paramMap.get("String_Node_Str");
  if (paramVal != null) {
    createGamma0VirtualBand=paramVal;
    createGamma0VirtualBandCheckBox.setSelected(createGamma0VirtualBand);
  }
  paramVal=(Boolean)paramMap.get("String_Node_Str");
  if (paramVal != null) {
    createBeta0VirtualBand=paramVal;
    createBeta0VirtualBandCheckBox.setSelected(createBeta0VirtualBand);
  }
  paramVal=(Boolean)paramMap.get("String_Node_Str");
  if (paramVal != null) {
    outputSigmaBand=paramVal;
    outputSigmaBandCheckBox.setSelected(outputSigmaBand);
  }
  paramVal=(Boolean)paramMap.get("String_Node_Str");
  if (paramVal != null) {
    outputGammaBand=paramVal;
    outputGammaBandCheckBox.setSelected(outputGammaBand);
  }
  paramVal=(Boolean)paramMap.get("String_Node_Str");
  if (paramVal != null) {
    outputBetaBand=paramVal;
    outputBetaBandCheckBox.setSelected(outputBetaBand);
  }
  paramVal=(Boolean)paramMap.get("String_Node_Str");
  if (paramVal != null) {
    outputDNBand=paramVal;
    outputDNBandCheckBox.setSelected(outputDNBand);
  }
}

Fixed version (ground truth):
@Override public void initParameters(){
  OperatorUIUtils.initParamList(bandList,getBandNames(),(Object[])paramMap.get("String_Node_Str"));
  if (sourceProducts != null) {
    final MetadataElement absRoot=AbstractMetadata.getAbstractedMetadata(sourceProducts[0]);
    if (absRoot != null) {
      final String sampleType=absRoot.getAttributeString(AbstractMetadata.SAMPLE_TYPE);
      if (sampleType.equals("String_Node_Str")) {
        auxFile.removeItem(CalibrationOp.PRODUCT_AUX);
        auxFile.setSelectedItem(paramMap.get("String_Node_Str"));
      }
 else {
        if (auxFile.getItemCount() == 2) {
          auxFile.addItem(CalibrationOp.PRODUCT_AUX);
        }
        auxFile.setSelectedItem(CalibrationOp.PRODUCT_AUX);
      }
      final String mission=absRoot.getAttributeString(AbstractMetadata.MISSION);
      if (!mission.equals("String_Node_Str")) {
        auxFile.setEnabled(false);
        auxFileLabel.setEnabled(false);
      }
 else {
        auxFile.setEnabled(true);
        auxFileLabel.setEnabled(true);
      }
      DialogUtils.enableComponents(auxFileLabel,auxFile,true);
      DialogUtils.enableComponents(bandListLabel,bandListPane,true);
      saveInComplexCheckBox.setVisible(true);
      saveInDbCheckBox.setVisible(true);
      createGamma0VirtualBandCheckBox.setVisible(true);
      createBeta0VirtualBandCheckBox.setVisible(true);
      DialogUtils.enableComponents(polListLabel,polListPane,false);
      outputSigmaBandCheckBox.setVisible(false);
      outputGammaBandCheckBox.setVisible(false);
      outputBetaBandCheckBox.setVisible(false);
      outputDNBandCheckBox.setVisible(false);
      if (mission.equals("String_Node_Str") && sampleType.equals("String_Node_Str")) {
        saveInComplexCheckBox.setEnabled(true);
        saveInComplexCheckBox.setSelected(false);
        if (saveInComplex) {
          saveInDbCheckBox.setEnabled(false);
          createGamma0VirtualBandCheckBox.setEnabled(false);
          createBeta0VirtualBandCheckBox.setEnabled(false);
          saveInDbCheckBox.setSelected(false);
          createGamma0VirtualBandCheckBox.setSelected(false);
          createBeta0VirtualBandCheckBox.setSelected(false);
        }
 else {
          saveInDbCheckBox.setEnabled(true);
          createGamma0VirtualBandCheckBox.setEnabled(true);
          createBeta0VirtualBandCheckBox.setEnabled(true);
        }
      }
 else       if (mission.startsWith("String_Node_Str")) {
        OperatorUIUtils.initParamList(polList,Sentinel1Utils.getProductPolarizations(absRoot),(String[])paramMap.get("String_Node_Str"));
        DialogUtils.enableComponents(auxFileLabel,auxFile,false);
        DialogUtils.enableComponents(externalAuxFileLabel,externalAuxFile,false);
        DialogUtils.enableComponents(bandListLabel,bandListPane,false);
        saveInComplexCheckBox.setVisible(false);
        saveInDbCheckBox.setVisible(false);
        createGamma0VirtualBandCheckBox.setVisible(false);
        createBeta0VirtualBandCheckBox.setVisible(false);
        DialogUtils.enableComponents(polListLabel,polListPane,true);
        outputSigmaBandCheckBox.setVisible(true);
        outputGammaBandCheckBox.setVisible(true);
        outputBetaBandCheckBox.setVisible(true);
        outputDNBandCheckBox.setVisible(true);
      }
 else {
        saveInComplexCheckBox.setEnabled(false);
        saveInComplexCheckBox.setSelected(false);
      }
    }
  }
 else {
    auxFile.setSelectedItem(paramMap.get("String_Node_Str"));
  }
  final File extFile=(File)paramMap.get("String_Node_Str");
  if (extFile != null) {
    externalAuxFile.setText(extFile.getAbsolutePath());
  }
  Boolean paramVal;
  paramVal=(Boolean)paramMap.get("String_Node_Str");
  if (paramVal != null) {
    saveInComplex=paramVal;
    saveInComplexCheckBox.setSelected(saveInComplex);
  }
  paramVal=(Boolean)paramMap.get("String_Node_Str");
  if (paramVal != null) {
    saveInDb=paramVal;
    saveInDbCheckBox.setSelected(saveInDb);
  }
  paramVal=(Boolean)paramMap.get("String_Node_Str");
  if (paramVal != null) {
    createGamma0VirtualBand=paramVal;
    createGamma0VirtualBandCheckBox.setSelected(createGamma0VirtualBand);
  }
  paramVal=(Boolean)paramMap.get("String_Node_Str");
  if (paramVal != null) {
    createBeta0VirtualBand=paramVal;
    createBeta0VirtualBandCheckBox.setSelected(createBeta0VirtualBand);
  }
  paramVal=(Boolean)paramMap.get("String_Node_Str");
  if (paramVal != null) {
    outputSigmaBand=paramVal;
    outputSigmaBandCheckBox.setSelected(outputSigmaBand);
  }
  paramVal=(Boolean)paramMap.get("String_Node_Str");
  if (paramVal != null) {
    outputGammaBand=paramVal;
    outputGammaBandCheckBox.setSelected(outputGammaBand);
  }
  paramVal=(Boolean)paramMap.get("String_Node_Str");
  if (paramVal != null) {
    outputBetaBand=paramVal;
    outputBetaBandCheckBox.setSelected(outputBetaBand);
  }
  paramVal=(Boolean)paramMap.get("String_Node_Str");
  if (paramVal != null) {
    outputDNBand=paramVal;
    outputDNBandCheckBox.setSelected(outputDNBand);
  }
}