I am facing a problem.
I have an enum which further goes as some string values.
Now I have a check or validation for that particular enum type as if it is null, then
display some error message.
But when I give nothing for the particular parameter, it takes the first value from the enum
which is wrong and I do not get the error message at all.
what should I have to do for the validation for null values or when user does not entered any value?
I do not want enum to set the default value as the first one.