Skip to content

Commit 0cff432

Browse files
aibabbatsov
authored andcommitted
Fix a NullPointerException on JDK 11 (#241)
1 parent 17d5764 commit 0cff432

File tree

1 file changed

+3
-3
lines changed

1 file changed

+3
-3
lines changed

src/refactor_nrepl/ns/slam/hound/search.clj

+3-3
Original file line numberDiff line numberDiff line change
@@ -108,9 +108,9 @@
108108
(StringTokenizer. path-str File/pathSeparator)))
109109

110110
(defn all-classpath-entries []
111-
(into (map #(System/getProperty %) ["sun.boot.class.path"
112-
"java.ext.dirs"
113-
"java.class.path"])
111+
(into (keep #(System/getProperty %) ["sun.boot.class.path"
112+
"java.ext.dirs"
113+
"java.class.path"])
114114
(map #(.getName %) (orchard.classpath/classpath-jarfiles))))
115115

116116
(defn- get-available-classes []

0 commit comments

Comments
 (0)