From c5ca61f2490fd96b90f53c9073de8562ba193b21 Mon Sep 17 00:00:00 2001 From: Shannon Date: Tue, 24 Apr 2018 17:15:35 +1000 Subject: [PATCH] Fixes PublishedContent.cs when the property index doesn't contain the alias index (due to adding a new property type and the json not matchin) --- src/Umbraco.Web/PublishedCache/NuCache/PublishedContent.cs | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) diff --git a/src/Umbraco.Web/PublishedCache/NuCache/PublishedContent.cs b/src/Umbraco.Web/PublishedCache/NuCache/PublishedContent.cs index b451b45a00..a3120ecb68 100644 --- a/src/Umbraco.Web/PublishedCache/NuCache/PublishedContent.cs +++ b/src/Umbraco.Web/PublishedCache/NuCache/PublishedContent.cs @@ -261,8 +261,7 @@ namespace Umbraco.Web.PublishedCache.NuCache if (index < 0) return null; //TODO: Should we log here? I think this can happen when property types are added/removed from the doc type and the json serialized properties // no longer match the list of property types since that is how the PropertiesArray is populated. - //TODO: Does the PropertiesArray get repopulated on content save? - if (index > PropertiesArray.Length) return null; + if (index >= PropertiesArray.Length) return null; var property = PropertiesArray[index]; return property; }