<< Back to previous view

[CLJS-634] NPE when using :source-maps with :optimizations :whitespace on a second run Created: 22/Oct/13  Updated: 24/Oct/13  Resolved: 24/Oct/13

Status: Closed
Project: ClojureScript
Component/s: None
Affects Version/s: None
Fix Version/s: None

Type: Defect Priority: Major
Reporter: Julien Eluard Assignee: Unassigned
Resolution: Completed Votes: 0
Labels: None

Attachments: Text File cljs_ticket_634-2.patch     Text File cljs_ticket_634.patch    


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

	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?).

Comment by Julien Eluard [ 22/Oct/13 8:22 AM ]

Attached a patch. It might not be fixing the root issue but fixes the problem and is safe in all cases.

Comment by Julien Eluard [ 22/Oct/13 8:57 PM ]

Updated the patch as an extra parenthesis sneaked in.

Comment by David Nolen [ 24/Oct/13 9:03 AM ]

fixed https://github.com/clojure/clojurescript/commit/2b50a90f84700bbf9cc256ed9ab7f82f95d704da

Generated at Sun Jan 21 06:58:31 CST 2018 using JIRA 4.4#649-r158309.