Skip to content

Instantly share code, notes, and snippets.

@freynaud
Created July 13, 2011 11:14
Show Gist options
  • Save freynaud/1080115 to your computer and use it in GitHub Desktop.
Save freynaud/1080115 to your computer and use it in GitHub Desktop.
public static void main(String[] args) {
FirefoxProfile p = new FirefoxProfile();
p.setAssumeUntrustedCertificateIssuer(true);
WebDriver driver = new FirefoxDriver(p);
}
@freynaud
Copy link
Author

Exception in thread "main" java.lang.NullPointerException
at com.google.common.base.Preconditions.checkNotNull(Preconditions.java:187)
at com.google.common.collect.ImmutableMap.of(ImmutableMap.java:75)
at org.openqa.selenium.remote.RemoteWebDriver.startSession(RemoteWebDriver.java:108)
at org.openqa.selenium.remote.RemoteWebDriver.(RemoteWebDriver.java:86)
at org.openqa.selenium.firefox.FirefoxDriver.(FirefoxDriver.java:130)
at org.openqa.selenium.firefox.FirefoxDriver.(FirefoxDriver.java:85)

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment