diff --git a/src/Umbraco.Core/Models/PropertyType.cs b/src/Umbraco.Core/Models/PropertyType.cs index c67a2bd2ed..f9155f1894 100644 --- a/src/Umbraco.Core/Models/PropertyType.cs +++ b/src/Umbraco.Core/Models/PropertyType.cs @@ -338,6 +338,9 @@ namespace Umbraco.Core.Models //Check against Regular Expression for Legacy DataTypes if(!string.IsNullOrEmpty(ValidationRegExp)) { + if (value == null) + return false; + var regexPattern = new Regex(ValidationRegExp); return regexPattern.IsMatch(value.ToString()); }