summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorRich Hickey <richhickey@gmail.com>2008-08-02 16:12:41 +0000
committerRich Hickey <richhickey@gmail.com>2008-08-02 16:12:41 +0000
commitd7a9719ec4394b5309c1b5f3d5494433c61968cd (patch)
tree3009dc7b6159ad3d5b8675743bd56ec30ba8125f
parent0e6b9ecedba11faa156403e059a7aa8672a7f774 (diff)
made (class nil) -> nil, instead of NPE
-rw-r--r--src/clj/clojure/boot.clj2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/clj/clojure/boot.clj b/src/clj/clojure/boot.clj
index 6dcbc1e3..0d00e017 100644
--- a/src/clj/clojure/boot.clj
+++ b/src/clj/clojure/boot.clj
@@ -2429,7 +2429,7 @@ not-every? (comp not every?))
(defn class
"Returns the Class of x"
- [#^Object x] (. x (getClass)))
+ [#^Object x] (if (nil? x) x (. x (getClass))))
(defn slurp
"Reads the file named by f into a string and returns it."