Program: 45464
Project: 45464
Buggy source:
/** 
 * creates a new JmeClientMain
 * @param args the command line arguments
 */
public JmeClientMain(String[] args){
  detectOS();
  checkVmVersion();
  processArgs(args);
  URL propsURL=getPropsURL();
  loadProperties(propsURL);
  userPreferences=Preferences.userNodeForPackage(JmeClientMain.class);
  checkDBException();
  ClientContextJME.setClientMain(this);
  String windowSize=System.getProperty(WINDOW_SIZE_PROP,WINDOW_SIZE_DEFAULT);
  try {
    if (windowSize.equalsIgnoreCase("String_Node_Str")) {
      GraphicsEnvironment ge=GraphicsEnvironment.getLocalGraphicsEnvironment();
      GraphicsDevice[] gs=ge.getScreenDevices();
      if (gs.length > 1) {
        LOGGER.warning("String_Node_Str");
      }
      GraphicsConfiguration gc=gs[0].getDefaultConfiguration();
      Rectangle size=gc.getBounds();
      width=size.width;
      height=size.height;
    }
 else {
      String sizeWidth=windowSize.substring(0,windowSize.indexOf('x'));
      String sizeHeight=windowSize.substring(windowSize.indexOf('x') + 1);
      width=Integer.parseInt(sizeWidth);
      height=Integer.parseInt(sizeHeight);
    }
  }
 catch (  Exception e) {
    LOGGER.warning(WINDOW_SIZE_PROP + "String_Node_Str" + "String_Node_Str"+ windowSize);
  }
  String serverURL=System.getProperty(SERVER_URL_PROP);
  if (serverURL == null) {
    serverURL=SERVER_URL_DEFAULT;
    System.setProperty(SERVER_URL_PROP,serverURL);
  }
  Clip clip2=Clip.create(1000,new TimingTarget(){
    public void timingEvent(    float arg0,    long arg1){
    }
    public void begin(){
    }
    public void end(){
    }
    public void pause(){
    }
    public void resume(){
    }
  }
);
  clip2.setInterpolator(Interpolators.getEasingInstance(0.4f,0.4f));
  clip2.start();
  WorldManager worldManager=ClientContextJME.getWorldManager();
  String requestedFPS=null;
  try {
    if (userPreferences.node(userPreferences.absolutePath()).get("String_Node_Str",null) != null) {
      requestedFPS=userPreferences.get("String_Node_Str",DESIRED_FPS_DEFAULT);
    }
 else {
      requestedFPS=System.getProperty(DESIRED_FPS_PROP,DESIRED_FPS_DEFAULT);
    }
  }
 catch (  Exception e) {
  }
  if (requestedFPS != null) {
    try {
      desiredFrameRate=Integer.parseInt(requestedFPS);
    }
 catch (    NumberFormatException e) {
      LOGGER.warning(DESIRED_FPS_PROP + "String_Node_Str" + requestedFPS+ "String_Node_Str");
    }
  }
  worldManager.getRenderManager().setDesiredFrameRate(desiredFrameRate);
  createUI(worldManager);
  login=new JmeLoginUI(frame);
  LoginManager.setLoginUI(login);
  frame.addServerURLListener(new ServerURLListener(){
    public void serverURLChanged(    final String serverURL){
      new Thread(ThreadManager.getThreadGroup(),new Runnable(){
        public void run(){
          try {
            loadServer(serverURL);
          }
 catch (          IOException ioe) {
            LOGGER.log(Level.WARNING,"String_Node_Str" + serverURL,ioe);
          }
        }
      }
).start();
    }
    public void logout(){
      new Thread(ThreadManager.getThreadGroup(),new Runnable(){
        public void run(){
          JmeClientMain.this.logout();
        }
      }
).start();
    }
  }
);
  float startX=Float.parseFloat(System.getProperty("String_Node_Str","String_Node_Str"));
  float startY=Float.parseFloat(System.getProperty("String_Node_Str","String_Node_Str"));
  float startZ=Float.parseFloat(System.getProperty("String_Node_Str","String_Node_Str"));
  Vector3f startLoc=new Vector3f(startX,startY,startZ);
  float look=Float.parseFloat(System.getProperty("String_Node_Str","String_Node_Str"));
  Quaternion startLook=new Quaternion(new float[]{0f,(float)Math.toRadians(look),0f});
  try {
    loadServer(serverURL,startLoc,startLook);
  }
 catch (  IOException ioe) {
    LOGGER.log(Level.WARNING,"String_Node_Str" + serverURL,ioe);
  }
}

Fixed version (ground truth):
/** 
 * creates a new JmeClientMain
 * @param args the command line arguments
 */
public JmeClientMain(String[] args){
  detectOS();
  checkVmVersion();
  processArgs(args);
  URL propsURL=getPropsURL();
  loadProperties(propsURL);
  userPreferences=Preferences.userNodeForPackage(JmeClientMain.class);
  checkDBException();
  ClientContextJME.setClientMain(this);
  String windowSize=System.getProperty(WINDOW_SIZE_PROP,WINDOW_SIZE_DEFAULT);
  int width=DEFAULT_WIDTH;
  int height=DEFAULT_HEIGHT;
  try {
    if (windowSize.equalsIgnoreCase("String_Node_Str")) {
      width=-1;
      height=-1;
    }
 else {
      String sizeWidth=windowSize.substring(0,windowSize.indexOf('x'));
      String sizeHeight=windowSize.substring(windowSize.indexOf('x') + 1);
      width=Integer.parseInt(sizeWidth);
      height=Integer.parseInt(sizeHeight);
    }
  }
 catch (  Exception e) {
    LOGGER.warning(WINDOW_SIZE_PROP + "String_Node_Str" + "String_Node_Str"+ windowSize);
  }
  String serverURL=System.getProperty(SERVER_URL_PROP);
  if (serverURL == null) {
    serverURL=SERVER_URL_DEFAULT;
    System.setProperty(SERVER_URL_PROP,serverURL);
  }
  Clip clip2=Clip.create(1000,new TimingTarget(){
    public void timingEvent(    float arg0,    long arg1){
    }
    public void begin(){
    }
    public void end(){
    }
    public void pause(){
    }
    public void resume(){
    }
  }
);
  clip2.setInterpolator(Interpolators.getEasingInstance(0.4f,0.4f));
  clip2.start();
  WorldManager worldManager=ClientContextJME.getWorldManager();
  String requestedFPS=null;
  try {
    if (userPreferences.node(userPreferences.absolutePath()).get("String_Node_Str",null) != null) {
      requestedFPS=userPreferences.get("String_Node_Str",DESIRED_FPS_DEFAULT);
    }
 else {
      requestedFPS=System.getProperty(DESIRED_FPS_PROP,DESIRED_FPS_DEFAULT);
    }
  }
 catch (  Exception e) {
  }
  if (requestedFPS != null) {
    try {
      desiredFrameRate=Integer.parseInt(requestedFPS);
    }
 catch (    NumberFormatException e) {
      LOGGER.warning(DESIRED_FPS_PROP + "String_Node_Str" + requestedFPS+ "String_Node_Str");
    }
  }
  worldManager.getRenderManager().setDesiredFrameRate(desiredFrameRate);
  createUI(worldManager,width,height);
  login=new JmeLoginUI(frame);
  LoginManager.setLoginUI(login);
  frame.addServerURLListener(new ServerURLListener(){
    public void serverURLChanged(    final String serverURL){
      new Thread(ThreadManager.getThreadGroup(),new Runnable(){
        public void run(){
          try {
            loadServer(serverURL);
          }
 catch (          IOException ioe) {
            LOGGER.log(Level.WARNING,"String_Node_Str" + serverURL,ioe);
          }
        }
      }
).start();
    }
    public void logout(){
      new Thread(ThreadManager.getThreadGroup(),new Runnable(){
        public void run(){
          JmeClientMain.this.logout();
        }
      }
).start();
    }
  }
);
  float startX=Float.parseFloat(System.getProperty("String_Node_Str","String_Node_Str"));
  float startY=Float.parseFloat(System.getProperty("String_Node_Str","String_Node_Str"));
  float startZ=Float.parseFloat(System.getProperty("String_Node_Str","String_Node_Str"));
  Vector3f startLoc=new Vector3f(startX,startY,startZ);
  float look=Float.parseFloat(System.getProperty("String_Node_Str","String_Node_Str"));
  Quaternion startLook=new Quaternion(new float[]{0f,(float)Math.toRadians(look),0f});
  try {
    loadServer(serverURL,startLoc,startLook);
  }
 catch (  IOException ioe) {
    LOGGER.log(Level.WARNING,"String_Node_Str" + serverURL,ioe);
  }
}