When trying to add or edit a pet, the following error is received even when the Name field is populated:
Property [name] of class [org.grails.samples.petclinic.Pet] cannot be null
See the following:
It looks like this is caused by the name of the field for the pet name being pet_name, but in the PetController the value is being retrieved from params?.pet?.name (which is null).
When trying to add or edit a pet, the following error is received even when the
Name
field is populated:See the following:
It looks like this is caused by the name of the field for the pet name being
pet_name
, but in thePetController
the value is being retrieved fromparams?.pet?.name
(which isnull
).