Details
-
Type:
Bug
-
Status:
Closed
-
Priority:
Minor
-
Resolution: Fixed
-
Affects Version/s: None
-
Fix Version/s: 1.0.0.RC2
-
Labels:None
Description
java.lang.NullPointerException at org.grails.datastore.gorm.GormInstanceApi.save(GormInstanceApi.groovy:139) at org.grails.datastore.gorm.GormEnhancer$1.call(GormEnhancer.groovy:93) at demo1.CustomerController$_closure4.doCall(CustomerController.groovy:24) at demo1.CustomerController$_closure4.doCall(CustomerController.groovy) at java.lang.Thread.run(Thread.java:680)
Customer.groovy:
class Customer {
String name
Address address
static embedded = ['address']
}
class Address {
String street
}
—
Moving Address to its own file fixes the problem.