Program: 45842
Project: 45842
Buggy source:
/** 
 * @{inheritDoc }
 */
public void open(){
  CellServerState cellServerState=editor.getCellServerState();
  AudioTreatmentComponentServerState state=(AudioTreatmentComponentServerState)cellServerState.getComponentServerState(AudioTreatmentComponentServerState.class);
  if (state == null) {
    return;
  }
  originalGroupId=state.getGroupId();
  audioGroupIdTextField.setText(originalGroupId);
  String[] treatmentList=state.getTreatments();
  originalFileTreatments="String_Node_Str";
  originalUrlTreatments="String_Node_Str";
  for (int i=0; i < treatmentList.length; i++) {
    String treatment=treatmentList[i];
    if (treatment.indexOf("String_Node_Str") > 0) {
      if (treatment.indexOf("String_Node_Str") < 0) {
        originalUrlTreatments+=treatment + "String_Node_Str";
      }
 else {
        originalFileTreatments+=treatment + "String_Node_Str";
      }
    }
  }
  originalFileTreatments=originalFileTreatments.trim();
  fileTextField.setText(originalFileTreatments);
  originalUrlTreatments=originalUrlTreatments.trim();
  urlTextField.setText(originalUrlTreatments);
  originalVolume=VolumeUtil.getClientVolume(state.getVolume());
  volumeSlider.setValue(originalVolume);
  originalPlayWhen=state.getPlayWhen();
  playWhen=originalPlayWhen;
switch (originalPlayWhen) {
case ALWAYS:
    alwaysRadioButton.setSelected(true);
  break;
case FIRST_IN_RANGE:
proximityRadioButton.setSelected(true);
break;
case MANUAL:
manualRadioButton.setSelected(true);
break;
}
originalExtentRadius=state.getExtent();
extentRadius=originalExtentRadius;
extentRadiusSpinner.setValue(originalExtentRadius);
extentRadiusSpinner.setEnabled(true);
extentRadiusSpinner.setValue((Double)extentRadius);
originalFullVolumeAreaPercent=state.getFullVolumeAreaPercent();
fullVolumeAreaPercentSpinner.setValue(originalFullVolumeAreaPercent);
originalDistanceAttenuated=state.getDistanceAttenuated();
distanceAttenuated=originalDistanceAttenuated;
distanceAttenuatedRadioButton.setSelected(originalDistanceAttenuated);
originalFalloff=(int)state.getFalloff();
falloffSlider.setValue(originalFalloff);
if (originalDistanceAttenuated == true) {
falloffSlider.setEnabled(true);
}
 else {
falloffSlider.setEnabled(false);
}
}

Fixed version (ground truth):
/** 
 * @{inheritDoc }
 */
public void open(){
  CellServerState state=editor.getCellServerState();
  AudioTreatmentComponentServerState compState=(AudioTreatmentComponentServerState)state.getComponentServerState(AudioTreatmentComponentServerState.class);
  if (state == null) {
    return;
  }
  originalGroupId=compState.getGroupId();
  audioGroupIdTextField.setText(originalGroupId);
  String[] treatmentList=compState.getTreatments();
  originalFileTreatments="String_Node_Str";
  originalUrlTreatments="String_Node_Str";
  for (int i=0; i < treatmentList.length; i++) {
    String treatment=treatmentList[i];
    if (treatment.indexOf("String_Node_Str") > 0) {
      if (treatment.indexOf("String_Node_Str") >= 0) {
        originalFileTreatments+=treatment + "String_Node_Str";
      }
 else {
        originalUrlTreatments+=treatment + "String_Node_Str";
      }
    }
 else {
      originalFileTreatments+=treatment + "String_Node_Str";
    }
  }
  originalFileTreatments=originalFileTreatments.trim();
  fileTextField.setText(originalFileTreatments);
  originalUrlTreatments=originalUrlTreatments.trim();
  urlTextField.setText(originalUrlTreatments);
  originalVolume=VolumeUtil.getClientVolume(compState.getVolume());
  volumeSlider.setValue(originalVolume);
  originalPlayWhen=compState.getPlayWhen();
  playWhen=originalPlayWhen;
switch (originalPlayWhen) {
case ALWAYS:
    alwaysRadioButton.setSelected(true);
  break;
case FIRST_IN_RANGE:
proximityRadioButton.setSelected(true);
break;
case MANUAL:
manualRadioButton.setSelected(true);
break;
}
originalExtentRadius=compState.getExtent();
extentRadius=originalExtentRadius;
extentRadiusSpinner.setValue(originalExtentRadius);
extentRadiusSpinner.setEnabled(true);
extentRadiusSpinner.setValue((Double)extentRadius);
originalFullVolumeAreaPercent=compState.getFullVolumeAreaPercent();
fullVolumeAreaPercentSpinner.setValue(originalFullVolumeAreaPercent);
originalDistanceAttenuated=compState.getDistanceAttenuated();
distanceAttenuated=originalDistanceAttenuated;
distanceAttenuatedRadioButton.setSelected(originalDistanceAttenuated);
originalFalloff=(int)compState.getFalloff();
falloffSlider.setValue(originalFalloff);
if (originalDistanceAttenuated == true) {
falloffSlider.setEnabled(true);
}
 else {
falloffSlider.setEnabled(false);
}
}