diff --git a/src/Umbraco.Web/PublishedCache/XmlPublishedCache/PublishedMediaCache.cs b/src/Umbraco.Web/PublishedCache/XmlPublishedCache/PublishedMediaCache.cs index 93e55a3705..765544b3fa 100644 --- a/src/Umbraco.Web/PublishedCache/XmlPublishedCache/PublishedMediaCache.cs +++ b/src/Umbraco.Web/PublishedCache/XmlPublishedCache/PublishedMediaCache.cs @@ -540,9 +540,7 @@ namespace Umbraco.Web.PublishedCache.XmlPublishedCache { // use property type to ensure proper conversion var propertyType = _contentType.GetPropertyType(i.Key); - - if (propertyType != null) - property = new XmlPublishedProperty(propertyType, false, i.Value); // false :: never preview a media + property = new XmlPublishedProperty(propertyType, false, i.Value); // false :: never preview a media } _properties.Add(property);