Skip to content

Exception in thread "main" java.lang.NullPointerException #2

@chr15m

Description

@chr15m

I'm probably doing something dumb here.

site.clj

(-> (html "index.template.html") (enlive/at [:section#content] (enlive/content (markdown "README.md"))))
  • README.md is a standard markdown.
  • index.template.html is a standard HTML file with <section id="content"></section> in it.

Exception

Exception in thread "main" java.lang.NullPointerException
	at bootleg.utils$convert_to.invokeStatic(utils.clj:153)
	at bootleg.utils$convert_to.invoke(utils.clj:150)
	at bootleg.namespaces$at__2990.invokeStatic(namespaces.clj:135)
	at bootleg.namespaces$at__2990.doInvoke(namespaces.clj:125)
	at clojure.lang.RestFn.applyTo(RestFn.java:139)
	at clojure.core$apply.invokeStatic(core.clj:665)
	at clojure.core$apply.invoke(core.clj:660)
	at sci.impl.interpreter$do_recur_BANG_.invokeStatic(interpreter.cljc:123)
	at sci.impl.interpreter$do_recur_BANG_.doInvoke(interpreter.cljc:121)
	at clojure.lang.RestFn.applyTo(RestFn.java:139)
	at clojure.core$apply.invokeStatic(core.clj:667)
	at clojure.core$apply.invoke(core.clj:660)
	at sci.impl.interpreter$apply_fn.invokeStatic(interpreter.cljc:132)
	at sci.impl.interpreter$apply_fn.invoke(interpreter.cljc:130)
	at sci.impl.interpreter$eval_call.invokeStatic(interpreter.cljc:306)
	at sci.impl.interpreter$eval_call.invoke(interpreter.cljc:271)
	at sci.impl.interpreter$interpret.invokeStatic(interpreter.cljc:320)
	at sci.impl.interpreter$interpret.invoke(interpreter.cljc:310)
	at sci.impl.interpreter$eval_do$fn__707.invoke(interpreter.cljc:62)
	at sci.impl.interpreter$eval_do.invokeStatic(interpreter.cljc:62)
	at sci.impl.interpreter$eval_do.invoke(interpreter.cljc:57)
	at sci.impl.interpreter$eval_string.invokeStatic(interpreter.cljc:370)
	at sci.impl.interpreter$eval_string.invoke(interpreter.cljc:352)
	at sci.core$eval_string.invokeStatic(core.cljc:35)
	at sci.core$eval_string.invoke(core.cljc:5)
	at bootleg.hiccup$process_hiccup_data.invokeStatic(hiccup.clj:54)
	at bootleg.hiccup$process_hiccup_data.invoke(hiccup.clj:22)
	at bootleg.hiccup$process_hiccup.invokeStatic(hiccup.clj:68)
	at bootleg.hiccup$process_hiccup.invoke(hiccup.clj:64)
	at bootleg.core$process.invokeStatic(core.clj:34)
	at bootleg.core$process.invoke(core.clj:32)
	at bootleg.core$_main.invokeStatic(core.clj:66)
	at bootleg.core$_main.doInvoke(core.clj:49)
	at clojure.lang.RestFn.applyTo(RestFn.java:137)
	at bootleg.core.main(Unknown Source)

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions