Program: 103325
Project: 103325
Buggy source:
/** 
 * Starts the SIP Communicator.
 * @param args command line args if any
 * @throws Exception whenever it makes sense.
 */
public static void main(String[] args) throws Exception {
  String version=System.getProperty("String_Node_Str");
  String vmVendor=System.getProperty("String_Node_Str");
  String osName=System.getProperty("String_Node_Str");
  if (osName.startsWith("String_Node_Str"))   System.setProperty("String_Node_Str","String_Node_Str");
  setScHomeDir(osName);
  if (version.startsWith("String_Node_Str") || vmVendor.startsWith("String_Node_Str") || vmVendor.startsWith("String_Node_Str")) {
    String os="String_Node_Str";
    if (osName.startsWith("String_Node_Str"))     os=ChangeJVMFrame.MAC_OSX;
 else     if (osName.startsWith("String_Node_Str"))     os=ChangeJVMFrame.LINUX;
 else     if (osName.startsWith("String_Node_Str"))     os=ChangeJVMFrame.WINDOWS;
    ChangeJVMFrame changeJVMFrame=new ChangeJVMFrame(os);
    Dimension screenSize=Toolkit.getDefaultToolkit().getScreenSize();
    changeJVMFrame.setLocation(screenSize.width / 2 - changeJVMFrame.getWidth() / 2,screenSize.height / 2 - changeJVMFrame.getHeight() / 2);
    changeJVMFrame.setVisible(true);
    return;
  }
  LaunchArgHandler argHandler=LaunchArgHandler.getInstance();
  int argHandlerRes=argHandler.handleArgs(args);
  if (argHandlerRes == LaunchArgHandler.ACTION_EXIT || argHandlerRes == LaunchArgHandler.ACTION_ERROR) {
    System.exit(argHandler.getErrorCode());
  }
  if (argHandlerRes != LaunchArgHandler.ACTION_CONTINUE_LOCK_DISABLED) {
switch (new SipCommunicatorLock().tryLock(args)) {
case SipCommunicatorLock.LOCK_ERROR:
      System.err.println("String_Node_Str" + "String_Node_Str" + "String_Node_Str");
    System.exit(SipCommunicatorLock.LOCK_ERROR);
  break;
case SipCommunicatorLock.ALREADY_STARTED:
System.out.println("String_Node_Str" + "String_Node_Str" + "String_Node_Str"+ "String_Node_Str");
System.exit(SipCommunicatorLock.SUCCESS);
break;
case SipCommunicatorLock.SUCCESS:
break;
}
}
System.setOut(new ScStdOut(System.out));
Main.main(new String[0]);
}

Fixed version (ground truth):
/** 
 * Starts the SIP Communicator.
 * @param args command line args if any
 * @throws Exception whenever it makes sense.
 */
public static void main(String[] args) throws Exception {
  String version=System.getProperty("String_Node_Str");
  String vmVendor=System.getProperty("String_Node_Str");
  String osName=System.getProperty("String_Node_Str");
  if (osName.startsWith("String_Node_Str")) {
    System.setProperty("String_Node_Str","String_Node_Str");
  }
 else   if (osName.startsWith("String_Node_Str")) {
    System.setProperty("String_Node_Str","String_Node_Str");
  }
  setScHomeDir(osName);
  if (version.startsWith("String_Node_Str") || vmVendor.startsWith("String_Node_Str") || vmVendor.startsWith("String_Node_Str")) {
    String os="String_Node_Str";
    if (osName.startsWith("String_Node_Str"))     os=ChangeJVMFrame.MAC_OSX;
 else     if (osName.startsWith("String_Node_Str"))     os=ChangeJVMFrame.LINUX;
 else     if (osName.startsWith("String_Node_Str"))     os=ChangeJVMFrame.WINDOWS;
    ChangeJVMFrame changeJVMFrame=new ChangeJVMFrame(os);
    Dimension screenSize=Toolkit.getDefaultToolkit().getScreenSize();
    changeJVMFrame.setLocation(screenSize.width / 2 - changeJVMFrame.getWidth() / 2,screenSize.height / 2 - changeJVMFrame.getHeight() / 2);
    changeJVMFrame.setVisible(true);
    return;
  }
  LaunchArgHandler argHandler=LaunchArgHandler.getInstance();
  int argHandlerRes=argHandler.handleArgs(args);
  if (argHandlerRes == LaunchArgHandler.ACTION_EXIT || argHandlerRes == LaunchArgHandler.ACTION_ERROR) {
    System.exit(argHandler.getErrorCode());
  }
  if (argHandlerRes != LaunchArgHandler.ACTION_CONTINUE_LOCK_DISABLED) {
switch (new SipCommunicatorLock().tryLock(args)) {
case SipCommunicatorLock.LOCK_ERROR:
      System.err.println("String_Node_Str" + "String_Node_Str" + "String_Node_Str");
    System.exit(SipCommunicatorLock.LOCK_ERROR);
  break;
case SipCommunicatorLock.ALREADY_STARTED:
System.out.println("String_Node_Str" + "String_Node_Str" + "String_Node_Str"+ "String_Node_Str");
System.exit(SipCommunicatorLock.SUCCESS);
break;
case SipCommunicatorLock.SUCCESS:
break;
}
}
System.setOut(new ScStdOut(System.out));
Main.main(new String[0]);
}