technomancy/leiningen — Issue #388: NPE in 1.x master branch for `lein test`
Author: dakrone
Created: 2012-01-30 23:49:12+00:00
State: open

When running lein test from git, I get an NPE from many OSS projects (cheshire, clj-http, clojure-opennlp):

```
∴ ~/src/clj/leiningen/bin/lein test
Exception in thread "main" java.lang.NullPointerException
at clojure.core$deref.invoke(core.clj:2078)
at leiningen.util.injected$run_hooks.invoke(NO_SOURCE_FILE:1)
at leiningen.util.injected$prepare_for_hooks$fn__14$runner__15.doInvoke(NO_SOURCE_FILE:1)
at clojure.lang.RestFn.applyTo(RestFn.java:137)
at clojure.lang.AFunction$1.doInvoke(AFunction.java:29)
at clojure.lang.RestFn.invoke(RestFn.java:408)
at clojure.test$do_report.invoke(test.clj:349)
at clojure.test$test_ns.invoke(test.clj:723)
at clojure.core$map$fn__3811.invoke(core.clj:2432)
at clojure.lang.LazySeq.sval(LazySeq.java:42)
at clojure.lang.LazySeq.seq(LazySeq.java:60)
at clojure.lang.Cons.next(Cons.java:39)
at clojure.lang.RT.boundedLength(RT.java:1607)
at clojure.lang.RestFn.applyTo(RestFn.java:130)
at clojure.core$apply.invoke(core.clj:602)
at clojure.test$run_tests.doInvoke(test.clj:743)
at clojure.lang.RestFn.applyTo(RestFn.java:137)
at clojure.core$apply.invoke(core.clj:600)
at user$eval29$fn__41.invoke(NO_SOURCE_FILE:1)
at user$eval29.invoke(NO_SOURCE_FILE:1)
at clojure.lang.Compiler.eval(Compiler.java:6465)
at clojure.lang.Compiler.eval(Compiler.java:6455)
at clojure.lang.Compiler.eval(Compiler.java:6431)
at clojure.core$eval.invoke(core.clj:2795)
at clojure.main$eval_opt.invoke(main.clj:296)
at clojure.main$initialize.invoke(main.clj:315)
at clojure.main$null_opt.invoke(main.clj:348)
at clojure.main$main.doInvoke(main.clj:426)
at clojure.lang.RestFn.invoke(RestFn.java:421)
at clojure.lang.Var.invoke(Var.java:405)
at clojure.lang.AFn.applyToHelper(AFn.java:163)
at clojure.lang.Var.applyTo(Var.java:518)
at clojure.main.main(main.java:37)
```