Program: 95745
Project: 95745
Buggy source:
/** 
 * parses the command line parameter when the parameter startserver was set set the parsed parameter into a job object
 * @param cmd CommandLine
 */
public void parseOptionsWithServer(CommandLine cmd){
  String defaultBasePath=getDefaultDataDirPath();
  parseDBOptions(cmd);
  if (cmd.hasOption(ClientTestStrings.STARTSERVER)) {
    setServerPort(cmd.getOptionValue(ClientTestStrings.STARTSERVER));
  }
  if (cmd.hasOption(ClientTestStrings.PROJECT)) {
    setProjectName(cmd.getOptionValue(ClientTestStrings.PROJECT));
  }
  if (cmd.hasOption(ClientTestStrings.PROJECT_VERSION)) {
    String[] numbers=cmd.getOptionValue(ClientTestStrings.PROJECT_VERSION).split("String_Node_Str");
    if (numbers.length == 2) {
      try {
        ProjectVersion version=VersionStringUtils.createProjectVersion(cmd.getOptionValue(ClientTestStrings.PROJECT_VERSION));
        m_projectVersion=version;
      }
 catch (      VersionStringUtils.MalformedVersionException e) {
      }
    }
  }
  if (cmd.hasOption(ClientTestStrings.SERVER)) {
    setServer(cmd.getOptionValue(ClientTestStrings.SERVER));
  }
  if (cmd.hasOption(ClientTestStrings.PORT)) {
    setPort(validateAndParseIntPortNumber(cmd.getOptionValue(ClientTestStrings.PORT)));
  }
  if (cmd.hasOption(ClientTestStrings.AUTO_SCREENSHOT)) {
    setAutoScreenshot(false);
  }
  if (cmd.hasOption(ClientTestStrings.NO_XML_SCREENSHOT)) {
    setXMLScreenshot(false);
  }
  if (cmd.hasOption(ClientTestStrings.RESULTDIR)) {
    setResultDir(FileUtils.resolveAgainstBasePath(cmd.getOptionValue(ClientTestStrings.RESULTDIR),defaultBasePath));
  }
  if (cmd.hasOption(ClientTestStrings.AUT_CONFIG)) {
    setAutConfigName(cmd.getOptionValue(ClientTestStrings.AUT_CONFIG));
  }
  if (cmd.hasOption(ClientTestStrings.AUT_ID)) {
    String autIdString=cmd.getOptionValue(ClientTestStrings.AUT_ID);
    if (autIdString != null) {
      setAutId(new AutIdentifier(autIdString));
    }
  }
  if (cmd.hasOption(ClientTestStrings.DATA_DIR)) {
    setDataDir(FileUtils.resolveAgainstBasePath(cmd.getOptionValue(ClientTestStrings.DATA_DIR),defaultBasePath));
  }
  if (cmd.hasOption(ClientTestStrings.LANGUAGE)) {
    setLanguage(LocaleUtil.convertStrToLocale(cmd.getOptionValue(ClientTestStrings.LANGUAGE)));
  }
  if (cmd.hasOption(ClientStrings.NORUN)) {
    setNoRunOptMode(TestExecutionConstants.runSteps.validateRunStep(cmd.getOptionValue(ClientStrings.NORUN)));
  }
}

Fixed version (ground truth):
/** 
 * parses the command line parameter when the parameter startserver was set set the parsed parameter into a job object
 * @param cmd CommandLine
 */
public void parseOptionsWithServer(CommandLine cmd){
  String defaultBasePath=getDefaultDataDirPath();
  parseDBOptions(cmd);
  if (cmd.hasOption(ClientTestStrings.STARTSERVER)) {
    setServerPort(cmd.getOptionValue(ClientTestStrings.STARTSERVER));
  }
  if (cmd.hasOption(ClientTestStrings.PROJECT)) {
    setProjectName(cmd.getOptionValue(ClientTestStrings.PROJECT));
  }
  if (cmd.hasOption(ClientTestStrings.PROJECT_VERSION)) {
    String[] numbers=cmd.getOptionValue(ClientTestStrings.PROJECT_VERSION).split("String_Node_Str");
    if (numbers.length == 2) {
      try {
        ProjectVersion version=VersionStringUtils.createProjectVersion(cmd.getOptionValue(ClientTestStrings.PROJECT_VERSION));
        m_projectVersion=version;
      }
 catch (      VersionStringUtils.MalformedVersionException e) {
      }
    }
  }
  if (cmd.hasOption(ClientTestStrings.SERVER)) {
    setServer(cmd.getOptionValue(ClientTestStrings.SERVER));
  }
  if (cmd.hasOption(ClientTestStrings.PORT)) {
    setPort(validateAndParseIntPortNumber(cmd.getOptionValue(ClientTestStrings.PORT)));
  }
  if (cmd.hasOption(ClientTestStrings.AUTO_SCREENSHOT)) {
    setAutoScreenshot(false);
  }
  if (cmd.hasOption(ClientTestStrings.NO_XML_SCREENSHOT)) {
    setXMLScreenshot(false);
  }
  if (cmd.hasOption(ClientTestStrings.RESULTDIR)) {
    setResultDir(FileUtils.resolveAgainstBasePath(cmd.getOptionValue(ClientTestStrings.RESULTDIR),defaultBasePath));
  }
  if (cmd.hasOption(ClientTestStrings.AUT_CONFIG)) {
    setAutConfigName(cmd.getOptionValue(ClientTestStrings.AUT_CONFIG));
  }
  if (cmd.hasOption(ClientTestStrings.AUT_ID)) {
    String autIdString=cmd.getOptionValue(ClientTestStrings.AUT_ID);
    if (autIdString != null) {
      setAutId(new AutIdentifier(autIdString));
    }
  }
  if (cmd.hasOption(ClientTestStrings.DATA_DIR)) {
    setDataDir(FileUtils.resolveAgainstBasePath(cmd.getOptionValue(ClientTestStrings.DATA_DIR),defaultBasePath));
  }
  if (cmd.hasOption(ClientTestStrings.LANGUAGE)) {
    setLanguage(LocaleUtil.convertStrToLocale(cmd.getOptionValue(ClientTestStrings.LANGUAGE)));
  }
  if (cmd.hasOption(ClientStrings.NORUN)) {
    setNoRunOptMode(TestExecutionConstants.RunSteps.validateRunStep(cmd.getOptionValue(ClientStrings.NORUN)));
  }
}