From ee0016fdd22429bd0f81fb36cbf275950322a7b9 Mon Sep 17 00:00:00 2001 From: Stuart Sierra Date: Fri, 7 Sep 2012 09:42:54 -0700 Subject: [PATCH] CLJ-1062: Fix 'require' for loading namespaces with no public vars --- src/clj/clojure/core.clj | 2 +- 1 files changed, 1 insertions(+), 1 deletions(-) diff --git a/src/clj/clojure/core.clj b/src/clj/clojure/core.clj index 4a6e61f..65bfe83 100644 --- a/src/clj/clojure/core.clj +++ b/src/clj/clojure/core.clj @@ -3803,7 +3803,7 @@ to-do (if (= :all (:refer fs)) (keys nspublics) (or (:refer fs) (:only fs) (keys nspublics)))] - (when-not (instance? clojure.lang.Sequential to-do) + (when (and to-do (not (instance? clojure.lang.Sequential to-do))) (throw (new Exception ":only/:refer value must be a sequential collection of symbols"))) (doseq [sym to-do] (when-not (exclude sym) -- 1.7.7.4