Program: 133640
Project: 133640
Buggy source:
/** 
 * This operation gets the radio selection and sets the fields of this class appropriately.
 */
public boolean setFinishFields(){
  int index=connectionCombo.getSelectionIndex();
  connectionId=connectionCombo.getText();
  windowId="String_Node_Str".equals(windowIdCombo.getText()) ? "String_Node_Str" : windowIdCombo.getText();
  if (index == -1) {
    windowId="String_Node_Str";
  }
  if (index == 0) {
    MessageDialog.openError(getShell(),"String_Node_Str","String_Node_Str" + "String_Node_Str");
    return false;
  }
  if (index > 0) {
    dialogExitSelection="String_Node_Str";
    return true;
  }
  if (localRadio.getSelection()) {
    dialogExitSelection="String_Node_Str";
    if (!localPathComp.getPathString().isEmpty()) {
      visItDir=localPathComp.getPathString();
    }
 else {
      MessageDialog.openError(getShell(),"String_Node_Str","String_Node_Str");
      return false;
    }
    hostname="String_Node_Str";
    if (!localPortComp.getPortString().isEmpty()) {
      port=localPortComp.getPortString();
    }
 else {
      MessageDialog.openError(getShell(),"String_Node_Str","String_Node_Str" + "String_Node_Str");
      return false;
    }
    password=localPasswordComp.getPassword();
    use_tunneling=false;
  }
 else   if (remoteRadio.getSelection()) {
    dialogExitSelection="String_Node_Str";
    if (!remoteHostComp.getHostString().isEmpty()) {
      hostname=remoteHostComp.getHostString();
    }
 else {
      MessageDialog.openError(getShell(),"String_Node_Str","String_Node_Str");
      return false;
    }
    if (!remotePathComp.getPathString().isEmpty()) {
      visItDir=remotePathComp.getPathString();
    }
 else {
      MessageDialog.openError(getShell(),"String_Node_Str","String_Node_Str");
      return false;
    }
    if (!remotePortComp.getPortString().isEmpty()) {
      port=remotePortComp.getPortString();
    }
 else {
      MessageDialog.openError(getShell(),"String_Node_Str","String_Node_Str" + "String_Node_Str");
      return false;
    }
    password=remotePasswordComp.getPassword();
    use_tunneling=true;
    gateway=remoteGatewayComp.getURLString();
    localGatewayPort=remoteGatewayComp.getPortString();
  }
 else   if (serviceRadio.getSelection()) {
    dialogExitSelection="String_Node_Str";
    if (!serviceHostComp.getHostString().isEmpty()) {
      hostname=serviceHostComp.getHostString();
    }
 else {
      MessageDialog.openError(getShell(),"String_Node_Str","String_Node_Str");
      return false;
    }
    if (!servicePortText.getText().isEmpty()) {
      port=servicePortText.getText();
    }
 else {
      MessageDialog.openError(getShell(),"String_Node_Str","String_Node_Str" + "String_Node_Str");
      return false;
    }
    password=servicePassText.getText();
    use_tunneling=false;
    gateway=serviceGatewayComp.getURLString();
    localGatewayPort=serviceGatewayComp.getPortString();
  }
 else {
    dialogExitSelection=null;
  }
  return true;
}

Fixed version (ground truth):
/** 
 * This operation gets the radio selection and sets the fields of this class appropriately.
 */
public boolean setFinishFields(){
  int index=connectionCombo.getSelectionIndex();
  connectionId=connectionCombo.getText();
  windowId="String_Node_Str".equals(windowIdCombo.getText()) ? "String_Node_Str" : windowIdCombo.getText();
  if (index == -1) {
    windowId="String_Node_Str";
  }
  if (index == 0) {
    MessageDialog.openError(getShell(),"String_Node_Str","String_Node_Str" + "String_Node_Str");
    return false;
  }
  if (index > 0) {
    dialogExitSelection="String_Node_Str";
    return true;
  }
  if (localRadio.getSelection()) {
    dialogExitSelection="String_Node_Str";
    if (!localPathComp.getPathString().isEmpty()) {
      visItDir=localPathComp.getPathString();
    }
 else {
      MessageDialog.openError(getShell(),"String_Node_Str","String_Node_Str");
      return false;
    }
    hostname="String_Node_Str";
    if (!localPortComp.getPortString().isEmpty()) {
      port=localPortComp.getPortString();
    }
 else {
      MessageDialog.openError(getShell(),"String_Node_Str","String_Node_Str" + "String_Node_Str");
      return false;
    }
    try (Socket test=new Socket("String_Node_Str",Integer.valueOf(port))){
      MessageDialog.openError(getShell(),"String_Node_Str","String_Node_Str" + "String_Node_Str");
      return false;
    }
 catch (    IOException e) {
    }
    password=localPasswordComp.getPassword();
    use_tunneling=false;
  }
 else   if (remoteRadio.getSelection()) {
    dialogExitSelection="String_Node_Str";
    if (!remoteHostComp.getHostString().isEmpty()) {
      hostname=remoteHostComp.getHostString();
    }
 else {
      MessageDialog.openError(getShell(),"String_Node_Str","String_Node_Str");
      return false;
    }
    if (!remotePathComp.getPathString().isEmpty()) {
      visItDir=remotePathComp.getPathString();
    }
 else {
      MessageDialog.openError(getShell(),"String_Node_Str","String_Node_Str");
      return false;
    }
    if (!remotePortComp.getPortString().isEmpty()) {
      port=remotePortComp.getPortString();
    }
 else {
      MessageDialog.openError(getShell(),"String_Node_Str","String_Node_Str" + "String_Node_Str");
      return false;
    }
    try (Socket test=new Socket("String_Node_Str",Integer.valueOf(port))){
      MessageDialog.openError(getShell(),"String_Node_Str","String_Node_Str" + "String_Node_Str");
      return false;
    }
 catch (    IOException e) {
    }
    password=remotePasswordComp.getPassword();
    use_tunneling=true;
    gateway=remoteGatewayComp.getURLString();
    localGatewayPort=remoteGatewayComp.getPortString();
  }
 else   if (serviceRadio.getSelection()) {
    dialogExitSelection="String_Node_Str";
    if (!serviceHostComp.getHostString().isEmpty()) {
      hostname=serviceHostComp.getHostString();
    }
 else {
      MessageDialog.openError(getShell(),"String_Node_Str","String_Node_Str");
      return false;
    }
    if (!servicePortText.getText().isEmpty()) {
      port=servicePortText.getText();
    }
 else {
      MessageDialog.openError(getShell(),"String_Node_Str","String_Node_Str" + "String_Node_Str");
      return false;
    }
    try (Socket test=new Socket("String_Node_Str",Integer.valueOf(port))){
      MessageDialog.openError(getShell(),"String_Node_Str","String_Node_Str" + "String_Node_Str");
      return false;
    }
 catch (    IOException e) {
    }
    password=servicePassText.getText();
    use_tunneling=false;
    gateway=serviceGatewayComp.getURLString();
    localGatewayPort=serviceGatewayComp.getPortString();
  }
 else {
    dialogExitSelection=null;
  }
  return true;
}