grails/grails-core — pull request #429 by dellermann (2013-11-29 16:41:44+00:00)
Title: Fix NPE in DomainClassMarshaller

I found an NPE in DomainClassMarshaller which is caused by changes in JSONWriter in commit 0aa1ec82ba236cac3f8cf6d4c139b67a26a19b3c. A call to writer.value(null) causes JSONWriter.value(Number) to be called, which in turn throws the NPE. In that commit method valueNull() was introduced, so I use it instead.

I'm not sure if line 160 (json.value(null)) must be changed, too.