diff --git a/src/Umbraco.Core/PublishedContentHelper.cs b/src/Umbraco.Core/PublishedContentHelper.cs index ada557d217..765b012164 100644 --- a/src/Umbraco.Core/PublishedContentHelper.cs +++ b/src/Umbraco.Core/PublishedContentHelper.cs @@ -77,6 +77,10 @@ namespace Umbraco.Core { var result = applicationContext.Services.ContentTypeService.GetContentType(docTypeAlias); if (result == null) return Guid.Empty; + if (!result.PropertyTypes.Any(x => x.Alias.InvariantEquals(propertyAlias))) + { + return Guid.Empty; + } var property = result.PropertyTypes.FirstOrDefault(x => x.Alias.InvariantEquals(propertyAlias)); if (property == null) return Guid.Empty; return property.DataTypeId;