ClojureScript

NPE when using :source-maps with :optimizations :whitespace on a second run

Details

  • Type: Defect Defect
  • Status: Closed Closed
  • Priority: Major Major
  • Resolution: Completed
  • Affects Version/s: None
  • Fix Version/s: None
  • Component/s: None
  • Labels:
    None

Description

When compiling without cleaning previous compilation results (e.g. using cljsbuild and not removing target/) a NPE is generated.
Stacktrace looks like:

java.lang.NullPointerException
	at cljs.closure$optimize.doInvoke(closure.clj:738)
	at clojure.lang.RestFn.applyTo(RestFn.java:139)
	at clojure.core$apply.invoke(core.clj:619)
	at cljs.closure$build.invoke(closure.clj:985)
	at cljs.closure$build.invoke(closure.clj:944)

This cannot be reproduced consistently (probably depends on the nature of the change?).

Activity

People

Vote (0)
Watch (1)

Dates

  • Created:
    Updated:
    Resolved: