Program: 94574
Project: 94574
Buggy source:
@Override public void actionPerformed(ActionEvent e){
  if (parent == null) {
    return;
  }
  Configuration config=parent.getConfiguration();
  if (config == null) {
    return;
  }
  if (cacheDir != null) {
    File fromConfig=config.getStorageDir();
    if (fromConfig != null && fromConfig.getAbsolutePath().equals(cacheDir.getAbsolutePath()) == false) {
      config.setCacheDir(cacheDir);
    }
 else {
    }
  }
  GPUDevice selected_gpu=null;
  for (  JCheckBoxGPU box : useGPUs) {
    if (box.isSelected()) {
      selected_gpu=box.getGPUDevice();
    }
  }
  ComputeType method=ComputeType.CPU;
  if (useCPU.isSelected() && selected_gpu == null) {
    method=ComputeType.CPU;
  }
 else   if (useCPU.isSelected() == false && selected_gpu != null) {
    method=ComputeType.GPU;
  }
 else   if (useCPU.isSelected() && selected_gpu != null) {
    method=ComputeType.CPU_GPU;
  }
  config.setComputeMethod(method);
  if (selected_gpu != null) {
    config.setUseGPU(selected_gpu);
  }
  int cpu_cores=-1;
  if (cpuCores != null) {
    cpu_cores=cpuCores.getValue();
  }
  if (cpu_cores > 0) {
    config.setUseNbCores(cpu_cores);
  }
  String proxyText=null;
  if (proxy != null) {
    try {
      Proxy.set(proxy.getText());
      proxyText=proxy.getText();
    }
 catch (    MalformedURLException e1) {
      System.err.println("String_Node_Str");
      System.err.println(e1);
      System.exit(2);
    }
  }
  String tile=null;
  if (customTileSize.isSelected() && tileSizeValue != null) {
    try {
      tile=tileSizeValue.getText().replaceAll("String_Node_Str","String_Node_Str");
      config.setTileSize(Integer.parseInt(tile));
    }
 catch (    NumberFormatException e1) {
      System.err.println("String_Node_Str");
      System.err.println(e1);
      System.exit(2);
    }
  }
  parent.setCredentials(login.getText(),new String(password.getPassword()));
  String cachePath=null;
  if (config.getUserSpecifiedACacheDir() && config.getStorageDir() != null) {
    cachePath=config.getStorageDir().getAbsolutePath();
  }
  if (saveFile.isSelected()) {
    new SettingsLoader(login.getText(),new String(password.getPassword()),proxyText,method,selected_gpu,cpu_cores,cachePath,autoSignIn.isSelected(),GuiSwing.type,tile).saveFile();
  }
 else {
    try {
      new File(new SettingsLoader().getFilePath()).delete();
    }
 catch (    SecurityException e3) {
    }
  }
}

Fixed version (ground truth):
@Override public void actionPerformed(ActionEvent e){
  if (parent == null) {
    return;
  }
  Configuration config=parent.getConfiguration();
  if (config == null) {
    return;
  }
  if (cacheDir != null) {
    File fromConfig=config.getStorageDir();
    if (fromConfig != null && fromConfig.getAbsolutePath().equals(cacheDir.getAbsolutePath()) == false) {
      config.setCacheDir(cacheDir);
    }
 else {
    }
  }
  GPUDevice selected_gpu=null;
  for (  JCheckBoxGPU box : useGPUs) {
    if (box.isSelected()) {
      selected_gpu=box.getGPUDevice();
    }
  }
  ComputeType method=ComputeType.CPU;
  if (useCPU.isSelected() && selected_gpu == null) {
    method=ComputeType.CPU;
  }
 else   if (useCPU.isSelected() == false && selected_gpu != null) {
    method=ComputeType.GPU;
  }
 else   if (useCPU.isSelected() && selected_gpu != null) {
    method=ComputeType.CPU_GPU;
  }
  config.setComputeMethod(method);
  if (selected_gpu != null) {
    config.setUseGPU(selected_gpu);
  }
  int cpu_cores=-1;
  if (cpuCores != null) {
    cpu_cores=cpuCores.getValue();
  }
  if (cpu_cores > 0) {
    config.setUseNbCores(cpu_cores);
  }
  String proxyText=null;
  if (proxy != null) {
    try {
      Proxy.set(proxy.getText());
      proxyText=proxy.getText();
    }
 catch (    MalformedURLException e1) {
      System.err.println("String_Node_Str");
      System.err.println(e1);
      System.exit(2);
    }
  }
  String tile=null;
  if (customTileSize.isSelected() && tileSizeValue != null) {
    try {
      tile=tileSizeValue.getText().replaceAll("String_Node_Str","String_Node_Str");
      config.setTileSize(Integer.parseInt(tile));
    }
 catch (    NumberFormatException e1) {
      System.err.println("String_Node_Str");
      System.err.println(e1);
      System.exit(2);
    }
  }
 else {
    config.setTileSize(-1);
  }
  parent.setCredentials(login.getText(),new String(password.getPassword()));
  String cachePath=null;
  if (config.getUserSpecifiedACacheDir() && config.getStorageDir() != null) {
    cachePath=config.getStorageDir().getAbsolutePath();
  }
  if (saveFile.isSelected()) {
    new SettingsLoader(login.getText(),new String(password.getPassword()),proxyText,method,selected_gpu,cpu_cores,cachePath,autoSignIn.isSelected(),GuiSwing.type,tile).saveFile();
  }
 else {
    try {
      new File(new SettingsLoader().getFilePath()).delete();
    }
 catch (    SecurityException e3) {
    }
  }
}