NullPointerException in walk

Issue #1 resolved
Anonymous created an issue

There appears to be a bug in "walk" when there is an empty folder somewhere beneath the specified directory. I've only tested this on Win XP but this triggers a NullPointerException on fs 0.4.0:

(walk "c:/empty" (fn [& a] true))

No message. [Thrown class java.lang.NullPointerException]

Restarts: 0: [QUIT] Quit to the SLIME top level

Backtrace: 0: clojure.lang.Reflector.invokeNoArgInstanceMember(Reflector.java:263) 1: fs$w_file_QMARK_.invoke(fs.clj:192) 2: fs$walk.invoke(fs.clj:204) 3: t$eval2410.invoke(NO_SOURCE_FILE:1) 4: clojure.lang.Compiler.eval(Compiler.java:5424) 5: clojure.lang.Compiler.eval(Compiler.java:5391) 6: clojure.core$eval.invoke(core.clj:2382) 7: swank.commands.basic$eval_region.invoke(basic.clj:47) [No Locals] 8: swank.commands.basic$eval_region.invoke(basic.clj:37) 9: swank.commands.basic$eval807$listener_eval808.invoke(basic.clj:71) 10: clojure.lang.Var.invoke(Var.java:365) 11: t$eval2408.invoke(NO_SOURCE_FILE) 12: clojure.lang.Compiler.eval(Compiler.java:5424) 13: clojure.lang.Compiler.eval(Compiler.java:5391) 14: clojure.core$eval.invoke(core.clj:2382) 15: swank.core$eval_in_emacs_package.invoke(core.clj:94) 16: swank.core$eval_for_emacs.invoke(core.clj:241) 17: clojure.lang.Var.invoke(Var.java:373) 18: clojure.lang.AFn.applyToHelper(AFn.java:169) 19: clojure.lang.Var.applyTo(Var.java:482) 20: clojure.core$apply.invoke(core.clj:540) 21: swank.core$eval_from_control.invoke(core.clj:101) 22: swank.core$eval_loop.invoke(core.clj:106) 23: swank.core$spawn_repl_thread$fn489$fn490.invoke(core.clj:311) 24: clojure.lang.AFn.applyToHelper(AFn.java:159) 25: clojure.lang.AFn.applyTo(AFn.java:151) 26: clojure.core$apply.invoke(core.clj:540) 27: swank.core$spawn_repl_thread$fn489.doInvoke(core.clj:308) 28: clojure.lang.RestFn.invoke(RestFn.java:398) 29: clojure.lang.AFn.run(AFn.java:24) 30: java.lang.Thread.run(Unknown Source)

Comments (2)

  1. Log in to comment