Skip to content

HTTPS clone URL

Subversion checkout URL

You can clone with
or
.
Download ZIP
Browse files

CLJS-590: NPE when using :source-map with :whitespace optimizations

  • Loading branch information...
commit ba475edd78a8940915c0cda718ad35db466b8d88 1 parent a2ba719
@swannodette swannodette authored
Showing with 7 additions and 6 deletions.
  1. +7 −6 src/clj/cljs/closure.clj
View
13 src/clj/cljs/closure.clj
@@ -722,12 +722,13 @@
(loop [sources (seq sources)
merged (sorted-map-by
(sm/source-compare
- (map (fn [source]
- (if-let [^URL source-url (:source-url source)]
- (.getPath source-url)
- (let [^URL url (:url source)]
- (.getPath url))))
- sources)))]
+ (remove nil?
+ (map (fn [source]
+ (if-let [^URL source-url (:source-url source)]
+ (.getPath source-url)
+ (if-let [^URL url (:url source)]
+ (.getPath url))))
+ sources))))]
(if sources
(let [source (first sources)]
(recur (next sources)
Please sign in to comment.
Something went wrong with that request. Please try again.