Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

hiccup-seq containing nil causes NPE on conversion #37

Closed
retrogradeorbit opened this issue Dec 2, 2019 · 0 comments
Closed

hiccup-seq containing nil causes NPE on conversion #37

retrogradeorbit opened this issue Dec 2, 2019 · 0 comments
Labels
bug Something isn't working

Comments

@retrogradeorbit
Copy link
Owner

hiccup-seq conversion does not ignore nil elements like reagent.

$ bootleg -e '(convert-to [nil] :html)'
Exception in thread "main" java.lang.NullPointerException
	at bootleg.utils$convert_to.invokeStatic(utils.clj:274)
	at bootleg.utils$convert_to.invoke(utils.clj:271)
	at clojure.lang.AFn.applyToHelper(AFn.java:156)
	at clojure.lang.AFn.applyTo(AFn.java:144)
	at clojure.core$apply.invokeStatic(core.clj:665)
	at clojure.core$apply.invoke(core.clj:660)
	at sci.impl.interpreter$eval_call.invokeStatic(interpreter.cljc:286)
	at sci.impl.interpreter$eval_call.invoke(interpreter.cljc:250)
	at sci.impl.interpreter$interpret.invokeStatic(interpreter.cljc:302)
	at sci.impl.interpreter$interpret.invoke(interpreter.cljc:292)
	at sci.impl.interpreter$eval_do$fn__688.invoke(interpreter.cljc:64)
	at sci.impl.interpreter$eval_do.invokeStatic(interpreter.cljc:64)
	at sci.impl.interpreter$eval_do.invoke(interpreter.cljc:59)
	at sci.impl.interpreter$eval_edn_vals.invokeStatic(interpreter.cljc:355)
	at sci.impl.interpreter$eval_edn_vals.invoke(interpreter.cljc:354)
	at sci.impl.interpreter$eval_string.invokeStatic(interpreter.cljc:363)
	at sci.impl.interpreter$eval_string.invoke(interpreter.cljc:357)
	at sci.core$eval_string.invokeStatic(core.cljc:37)
	at sci.core$eval_string.invoke(core.cljc:5)
	at bootleg.hiccup$process_hiccup_data.invokeStatic(hiccup.clj:60)
	at bootleg.hiccup$process_hiccup_data.invoke(hiccup.clj:23)
	at bootleg.core$_main.invokeStatic(core.clj:67)
	at bootleg.core$_main.doInvoke(core.clj:52)
	at clojure.lang.RestFn.applyTo(RestFn.java:137)
	at bootleg.core.main(Unknown Source)
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Something isn't working
Projects
None yet
Development

No branches or pull requests

1 participant