Program: 10697
Project: 10697
Buggy source:
private void createChromeBrowser(DesiredCapabilities capabilities) throws MalformedURLException {
  ChromeDriverManager.getInstance().setup();
  ChromeOptions options=new ChromeOptions();
  if (extensions != null && !extensions.isEmpty()) {
    for (    Map<String,String> extension : extensions) {
      InputStream is=getExtensionAsInputStream(extension.values().iterator().next());
      if (is != null) {
        try {
          File crx=File.createTempFile(extension.keySet().iterator().next(),"String_Node_Str");
          FileUtils.copyInputStreamToFile(is,crx);
          options.addExtensions(crx);
        }
 catch (        Throwable t) {
          log.error("String_Node_Str",extension,t.getClass(),t.getMessage());
        }
      }
    }
  }
  if (enableScreenCapture) {
    options.addArguments("String_Node_Str");
    String windowTitle=TEST_SCREEN_SHARE_TITLE_DEFAULT;
    if (platform != null && (platform == Platform.WINDOWS || platform == Platform.XP || platform == Platform.VISTA || platform == Platform.WIN8 || platform == Platform.WIN8_1)) {
      windowTitle=TEST_SCREEN_SHARE_TITLE_DEFAULT_WIN;
    }
    options.addArguments("String_Node_Str" + getProperty(TEST_SCREEN_SHARE_TITLE_PROPERTY,windowTitle));
  }
 else {
    options.addArguments("String_Node_Str");
  }
  options.addArguments("String_Node_Str");
  if (protocol == Protocol.FILE) {
    options.addArguments("String_Node_Str");
  }
  if (!usePhysicalCam) {
    options.addArguments("String_Node_Str");
    if (video != null && (isLocal() || isDocker())) {
      if (!Files.exists(Paths.get(video))) {
        throw new RuntimeException("String_Node_Str" + video + "String_Node_Str");
      }
      log.debug("String_Node_Str",video,id);
      options.addArguments("String_Node_Str" + video);
    }
  }
  capabilities.setCapability(ChromeOptions.CAPABILITY,options);
  capabilities.setBrowserName(DesiredCapabilities.chrome().getBrowserName());
  if (scope == BrowserScope.DOCKER) {
    capabilities.setCapability("String_Node_Str",id);
  }
  createDriver(capabilities,options);
}

Fixed version (ground truth):
private void createChromeBrowser(DesiredCapabilities capabilities) throws MalformedURLException {
  ChromeDriverManager.getInstance().setup();
  ChromeOptions options=new ChromeOptions();
  if (extensions != null && !extensions.isEmpty()) {
    for (    Map<String,String> extension : extensions) {
      InputStream is=getExtensionAsInputStream(extension.values().iterator().next());
      if (is != null) {
        try {
          File crx=File.createTempFile(extension.keySet().iterator().next(),"String_Node_Str");
          FileUtils.copyInputStreamToFile(is,crx);
          options.addExtensions(crx);
        }
 catch (        Throwable t) {
          log.error("String_Node_Str",extension,t.getClass(),t.getMessage());
        }
      }
    }
  }
  if (enableScreenCapture) {
    options.addArguments("String_Node_Str");
    String windowTitle=TEST_SCREEN_SHARE_TITLE_DEFAULT;
    if (platform != null && (platform == Platform.WINDOWS || platform == Platform.XP || platform == Platform.VISTA || platform == Platform.WIN8 || platform == Platform.WIN8_1)) {
      windowTitle=TEST_SCREEN_SHARE_TITLE_DEFAULT_WIN;
    }
    options.addArguments("String_Node_Str" + getProperty(TEST_SCREEN_SHARE_TITLE_PROPERTY,windowTitle));
  }
 else {
    options.addArguments("String_Node_Str");
  }
  options.addArguments("String_Node_Str");
  if (protocol == Protocol.FILE) {
    options.addArguments("String_Node_Str");
  }
  if (!usePhysicalCam) {
    options.addArguments("String_Node_Str");
    if (video != null && (isLocal() || isDocker())) {
      if (!Files.exists(Paths.get(video))) {
        throw new RuntimeException("String_Node_Str" + video + "String_Node_Str");
      }
      log.debug("String_Node_Str",video,id);
      options.addArguments("String_Node_Str" + video);
    }
  }
  capabilities.setCapability(ChromeOptions.CAPABILITY,options);
  capabilities.setBrowserName(DesiredCapabilities.chrome().getBrowserName());
  createDriver(capabilities,options);
}