hey manu, I couldnt follow you completly. Why are you throwing that errror? Is it like name is required? and also if the user does not enter anything in the field the "getName()" will give you an empty string and not a null(as far as i know). So i think something like this may work:
So this will give an error everytime the user enters nothing,
I promise I will be the best, most loyal friend ever! All for this tiny ad:
Devious Experiments for a Truly Passive Greenhouse!