Merge pull request #2107 from leekelleher/temp-U4-10260

U4-10260 - Umbraco.7.7 beta - NestedContent with ModelsBuilder disabled throws error
This commit is contained in:
Sebastiaan Janssen
2017-08-30 10:04:24 +02:00
committed by GitHub

View File

@@ -108,7 +108,7 @@ namespace Umbraco.Web.PropertyEditors.ValueConverters
i,
preview);
if (PublishedContentModelFactoryResolver.HasCurrent)
if (PublishedContentModelFactoryResolver.HasCurrent && PublishedContentModelFactoryResolver.Current.HasValue)
{
// Let the current model factory create a typed model to wrap our model
content = PublishedContentModelFactoryResolver.Current.Factory.CreateModel(content);