A Boolean only has two values, true or false.
Empty is not a valid value. If you want to use more than 2 values then you'd should use a enum.
If the attribute you are changing is a boolean, it can only be true or false. In your else statement, you are saying "else empty". For this, it should be either "else false" or "else true".
Your question says you are changing an attribute that is of type enumeration, but the error message would only occur if you are changing an attribute of type boolean. I would double check your domain model to see if this attribute is the right data type. Also double check you are changing the right attribute.