Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

Already on GitHub? Sign in to your account

Exception: cannot construct Atom(null) #1091

indrajitr opened this Issue Aug 20, 2011 · 2 comments


None yet
3 participants

indrajitr commented Aug 20, 2011

We've run across a situation using 2.4-M2 where the following exception occurs with no stack trace and the UI hangs:
[pool-2-thread-5] ERROR net.liftweb.util.Schedule - java.lang.IllegalArgumentException: cannot construct Atom(null)

Winnowing it down...
def all(in: NodeSeq): NodeSeq = page.flatMap(item =>
bind("item", in,
"starRating" -> (if (item.hotel.diamondRating == null) "" else item.hotel.diamondRating)
The startRating line used to be just
"starRating" -> item.hotel.diamondRating
but when some data showed up unexpectedly dirty, diamondRating can be null when it should instead be blank.

See discussion at http://groups.google.com/group/liftweb/browse_thread/thread/eb91f34edd5451c3/bba1623e717460ec#bba1623e717460ec


dpp commented Aug 25, 2011

(In [[r:e1cf30cd737010e058ca4b4d07110defbc2ef093]]) Closes #1091. Better null testing and better Elem testing for bind() and CSS Selector Transforms

Branch: master

@ghost ghost assigned dpp Mar 1, 2012

etorreborre pushed a commit to etorreborre/framework that referenced this issue Dec 3, 2014

This issue was closed.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment