NAJU-Sachsen / NAJU-Adebar

Management tool used by the NAJU Sachsen to keep track of volunteers and the like.
http://naju-sachsen.de
GNU General Public License v3.0
0 stars 0 forks source link

Make converters return null if empty strings are submitted #42

Closed rbergm closed 6 years ago

rbergm commented 6 years ago

When an input of some form is left empty, it will be submitted as an empty String as well. This causes problems with the EmailConverter as well as the PhoneNumberConverter. They just pass the parameter on to create a respective instance. Hence an IllegalArgumentException is thrown when they receive an empty String. The expected behaviour should be to just return null instead.