<< Back to previous view

[CLJS-624] Null pointer exception from using the "when" function in extend-type macro Created: 17/Oct/13  Updated: 18/Oct/13  Resolved: 18/Oct/13

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

Type: Defect Priority: Minor
Reporter: Rupa Shankar Assignee: Unassigned
Resolution: Completed Votes: 0
Labels: None


Attachments: Text File 624.patch    
Patch: Code


Was writing a patch to fix CLJS-528, but am getting a null pointer exception from using the when function in the extend-type macro.

Comment by Rupa Shankar [ 17/Oct/13 3:16 PM ]

The code that produces the null pointer exception – using when-not does not, but using when (as the patch currently does) does produce the exception.

Comment by David Nolen [ 18/Oct/13 3:39 PM ]

this is not a bug in ClojureScript itself, the patch will allow nils to flow into analyzer/resolve-var which won't work, because (namespace nil) will throw.

Generated at Tue Oct 24 06:33:36 CDT 2017 using JIRA 4.4#649-r158309.