From 177bba5e73e0be14c5ead6d8d4d33e48505d4adc Mon Sep 17 00:00:00 2001 From: Shannon Date: Tue, 8 May 2018 13:03:19 +1000 Subject: [PATCH] REmoves null checks on PropertyData since this causes exceptions when creating this object and deserializing to this object --- .../NuCache/DataSource/PropertyData.cs | 15 ++------------- 1 file changed, 2 insertions(+), 13 deletions(-) diff --git a/src/Umbraco.Web/PublishedCache/NuCache/DataSource/PropertyData.cs b/src/Umbraco.Web/PublishedCache/NuCache/DataSource/PropertyData.cs index 9f0b3cf7fa..29cbed08b6 100644 --- a/src/Umbraco.Web/PublishedCache/NuCache/DataSource/PropertyData.cs +++ b/src/Umbraco.Web/PublishedCache/NuCache/DataSource/PropertyData.cs @@ -5,22 +5,11 @@ namespace Umbraco.Web.PublishedCache.NuCache.DataSource { internal class PropertyData { - private string _culture; - private string _segment; - [JsonProperty("culture")] - public string Culture - { - get => _culture; - set => _culture = value ?? throw new ArgumentNullException(nameof(value)); - } + public string Culture { get; set; } [JsonProperty("seg")] - public string Segment - { - get => _segment; - set => _segment = value ?? throw new ArgumentNullException(nameof(value)); - } + public string Segment { get; set; } [JsonProperty("val")] public object Value { get; set; }