Skip to content

Instantly share code, notes, and snippets.

@edoloughlin
Created January 23, 2011 21:11
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save edoloughlin/792443 to your computer and use it in GitHub Desktop.
Save edoloughlin/792443 to your computer and use it in GitHub Desktop.
This fails with NPE on line 1...
(ns myapp.domain.user
(:require clj-record.boot)
(:require
[myapp.util.date :as date-util]
[clj-time.core :as clj-time]
[clojure.contrib.sql :as sql]
[clj-record.validation.built-ins :as valid]
[clj-record.callbacks.built-ins :as cb]
[clj-time.core :as clj-time]
[myapp.config :as config]
[myapp.util.encrypt :as encrypt]
[myapp.util.date :as date-util]
[myapp.domain.email-status :as email-status])
(:use clojure.contrib.condition))
; Function definitions etc. follow...
@edoloughlin
Copy link
Author

When I run my app (from CounterClockwise), I get this:
Clojure 1.2.0
java.lang.RuntimeException: java.lang.NullPointerException (user.clj:1)
1:1 user=>

My line 1 is just the namespace declaration and a bunch of imports (see above). I tried reverting line 1 to my last successful checkin, but the problem remains. It's obviously caused elsewhere in my app. How to I go about diagnosing this?

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