File tree Expand file tree Collapse file tree 3 files changed +14
-1
lines changed Expand file tree Collapse file tree 3 files changed +14
-1
lines changed Original file line number Diff line number Diff line change 2
2
3
3
## master (unreleased)
4
4
5
+ ### Bugs fixed
6
+
7
+ * Fix a NullPointerException in ` orchard.cljs.analysis ` .
8
+
5
9
## 0.9.0 (2022-01-10)
6
10
7
11
### Changes
Original file line number Diff line number Diff line change 11
11
(remove (fn [[ns-sym ns ]]
12
12
; ; Remove pseudo-namespaces that the cljs analyzer
13
13
; ; started returning at some point:
14
- (or (-> ns-sym name (.startsWith " goog." ))
14
+ (or (some -> ns-sym name (.startsWith " goog." ))
15
15
; ; recent CLJS versions include data about macro namespaces in the
16
16
; ; compiler env, but we should not include them in completions or pass
17
17
; ; them to format-ns unless they're actually required (which is handled
Original file line number Diff line number Diff line change
1
+ (ns orchard.cljs.analysis-test
2
+ (:require
3
+ [clojure.test :refer [deftest is testing]]
4
+ [orchard.cljs.analysis :as sut]))
5
+
6
+ ; ; Covers a NPE caught in the wild: https://gist.github.com/dgtized/aa046d06c921d4cb9f7dc51ea2729459
7
+ (deftest all-ns-test
8
+ (testing " Handles nil-valued maps gracefully"
9
+ (is (sut/all-ns {:cljs.analyzer/namespaces {nil nil }}))))
You can’t perform that action at this time.
0 commit comments