Browse files

CLJS-634: do not call getPath on a null value.

  • Loading branch information...
1 parent d31b536 commit 2b50a90f84700bbf9cc256ed9ab7f82f95d704da @jeluard jeluard committed with swannodette Oct 22, 2013
Showing with 2 additions and 2 deletions.
  1. +2 −2 src/clj/cljs/closure.clj
@@ -734,8 +734,8 @@
(recur (next sources)
(if-let [url (:url source)]
(let [path (.getPath ^URL url)]
- (if-let [compiled (get @compiled-cljs path)]
- (assoc merged (.getPath ^URL (:source-url source))
+ (if-let [compiled (get @compiled-cljs path)]
+ (assoc merged (when-let [source-url (:source-url source)] (.getPath ^URL source-url))
(:source-map compiled)
(get closure-source-map path)))

0 comments on commit 2b50a90

Please sign in to comment.