altEmailAddress(blank: true, nullable: true, validator: {
if (it == null || it == '') {
return true
} else {
return (User.countByEmailAddress(it) > 0 && User.countByAltEmailAddress(it) > 0)
}
}
Stack trace:
Testcase: testFindValidEmailAddress took 0.429 sec Caused an ERROR null java.lang.StackOverflowError at com.clearlyINNOVATIVE.model.User$__clinit__closure7_closure13.doCall(User.groovy:36) at com.clearlyINNOVATIVE.model.User$__clinit__closure7_closure13.doCall(User.groovy:36) at com.clearlyINNOVATIVE.model.User$__clinit__closure7_closure13.doCall(User.groovy:36) at com.clearlyINNOVATIVE.model.User$__clinit__closure7_closure13.doCall(User.groovy:36) at com.clearlyINNOVATIVE.model.User$__clinit__closure7_closure13.doCall(User.groovy:36) at com.clearlyINNOVATIVE.model.User$__clinit__closure7_closure13.doCall(User.groovy:36) at com.clearlyINNOVATIVE.model.User$__clinit__closure7_closure13.doCall(User.groovy:36) at com.clearlyINNOVATIVE.model.User$__clinit__closure7_closure13.doCall(User.groovy:36) at com.clearlyINNOVATIVE.model.User$__clinit__closure7_closure13.doCall(User.groovy:36) at com.clearlyINNOVATIVE.model.User$__clinit__closure7_closure13.doCall(User.groovy:36) at com.clearlyINNOVATIVE.model.User$__clinit__closure7_closure13.doCall(User.groovy:36) at com.clearlyINNOVATIVE.model.User$__clinit__closure7_closure13.doCall(User.groovy:36) at com.clearlyINNOVATIVE.model.User$__clinit__closure7_closure13.doCall(User.groovy:36)