Re: Strange nullpointer when seqing through an xml

2009-10-07 Thread pmf
On Oct 7, 10:50 am, Hans Sjunnesson wrote: > The following code works fine: > (doseq [x (xml-seq foo)] (println x)) > > However when I want to do more things in the doseq body, or I simply > add an extra set of parentheses around the println statement, I get a > nullpointer. > (doseq [x (xml-seq

Re: Strange nullpointer when seqing through an xml

2009-10-07 Thread Meikel Brandmeyer
Hi, On Oct 7, 10:50 am, Hans Sjunnesson wrote: > However when I want to do more things in the doseq body, or I simply > add an extra set of parentheses around the println statement, I get a > nullpointer. > (doseq [x (xml-seq foo)] ((println x))) Just do multiple things in the doseq body: (do

Strange nullpointer when seqing through an xml

2009-10-07 Thread Hans Sjunnesson
The following code works fine: (doseq [x (xml-seq foo)] (println x)) However when I want to do more things in the doseq body, or I simply add an extra set of parentheses around the println statement, I get a nullpointer. (doseq [x (xml-seq foo)] ((println x))) java.lang.NullPointerException (NO_