<< 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
Environment:

Mac OSX


Attachments: Text File 624.patch    
Patch: Code

 Description   

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.



 Comments   
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 Sep 02 07:27:10 CDT 2014 using JIRA 4.4#649-r158309.