U4-9862 - Umbraco 7.6- EmailAddressValueConverter runtime error with empty value

Created by Dave Woestenborghs 05 May 2017, 11:26:06 Updated by Shannon Deminick 24 May 2017, 05:41:08

Tags: PR

Subtask of: U4-9609

What did you do? Added a property to a doctype using the editor "Umbraco.EmailAddress". This property is not required.

What did you expect to happen? Trying to get the value from the model (modelsbuilder) should return a emtpy string

What actually happened? A run time error happened : NullReferenceException: Object reference not set to an instance of an object.] Umbraco.Core.PropertyEditors.ValueConverters.EmailAddressValueConverter.ConvertSourceToObject(PublishedPropertyType propertyType, Object source, Boolean preview) +2 Umbraco.Web.PublishedCache.XmlPublishedCache.XmlPublishedProperty.get_Value() +110 Umbraco.Web.PublishedPropertyExtension.GetValue(IPublishedProperty property, Boolean withDefaultValue, T defaultValue) +101 Umbraco.Web.PublishedContentExtensions.GetPropertyValue(IPublishedContent content, String alias) +74


Dave Woestenborghs 05 May 2017, 11:28:16

Created a PR for the fix : https://github.com/umbraco/Umbraco-CMS/pull/1932

Priority: Major

Type: Bug

State: Fixed


Difficulty: Normal


Backwards Compatible: True

Fix Submitted: Pull request

Affected versions: 7.6.0

Due in version: 7.6.1


Story Points:

Cycle: 1