semperos/clj-webdriver — Issue #22: Firefox-specific enable-extension causes NPE on startup
Author: semperos
Created: 2011-12-16 15:36:55+00:00
State: open

From [this post](https://groups.google.com/d/msg/clj-webdriver/8Iewxgl3HKg/AROwj7vPiQMJ) on the Google group:

```
my-ns> (.exists (clojure.java.io/as-file "c:/work/git-repository/tf/resources/firebug-1.8.3.xpi"))
true

my-ns> (cw/start (cw/new-driver :firefox
(doto (ff/new-profile)
(ff/enable-extension "c:/work/git-repository/tf/resources/firebug-1.8.3.xpi"))) "http://www.google.com")

;; browser opens... requested url does not open ... null pointer exception.

No message.
[Thrown class java.lang.NullPointerException]

Restarts:
0: [QUIT] Quit to the SLIME top level

Backtrace:
0: clojure.core$apply.invoke(core.clj:600)
1: clj_webdriver.driver$init_cache.invoke(driver.clj:18)
2: clj_webdriver.driver$init_driver.invoke(driver.clj:28)
3: clj_webdriver.core$new_driver.invoke(core.clj:56)
```