diff --git a/src/Umbraco.Core/PropertyEditors/EmailValidator.cs b/src/Umbraco.Core/PropertyEditors/EmailValidator.cs index 0cda202756..403e26ca70 100644 --- a/src/Umbraco.Core/PropertyEditors/EmailValidator.cs +++ b/src/Umbraco.Core/PropertyEditors/EmailValidator.cs @@ -16,16 +16,16 @@ namespace Umbraco.Core.PropertyEditors var emailVal = new EmailAddressAttribute(); - if (emailVal.IsValid(asString) == false) + if (asString != string.Empty && emailVal.IsValid(asString) == false) { - //TODO: localize these! + // TODO: localize these! yield return new ValidationResult("Email is invalid", new[] { "value" }); } } public IEnumerable Validate(object value, PreValueCollection preValues, PropertyEditor editor) { - return Validate(value, null, preValues, editor); + return this.Validate(value, null, preValues, editor); } } } \ No newline at end of file