Skip to content

Instantly share code, notes, and snippets.

@skuro
Created October 7, 2011 09:05
Show Gist options
  • Select an option

  • Save skuro/1269840 to your computer and use it in GitHub Desktop.

Select an option

Save skuro/1269840 to your computer and use it in GitHub Desktop.
Clojure NPE
(defn alien-fn [str ns]
(let [cur *ns*
alien (in-ns ns)]
(eval (read-string str))
(in-ns cur)))
(alien-fn "(println *ns*)" (namespace 'yy))
java.lang.NullPointerException (NO_SOURCE_FILE:0)
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment