From d677ea618c8993390c8157f1b068a7253f75702a Mon Sep 17 00:00:00 2001 From: Shannon Date: Tue, 1 Oct 2019 09:48:46 +0200 Subject: [PATCH] Fixes null reference caused in GridPropertyValueEditor when the value is empty --- src/Umbraco.Web/PropertyEditors/GridPropertyEditor.cs | 3 +++ 1 file changed, 3 insertions(+) diff --git a/src/Umbraco.Web/PropertyEditors/GridPropertyEditor.cs b/src/Umbraco.Web/PropertyEditors/GridPropertyEditor.cs index f940ed5c15..0b37638afd 100644 --- a/src/Umbraco.Web/PropertyEditors/GridPropertyEditor.cs +++ b/src/Umbraco.Web/PropertyEditors/GridPropertyEditor.cs @@ -83,6 +83,9 @@ namespace Umbraco.Web.PropertyEditors // editorValue.Value is a JSON string of the grid var rawJson = editorValue.Value.ToString(); + if (rawJson.IsNullOrWhiteSpace()) + return null; + var grid = JsonConvert.DeserializeObject(rawJson); // Find all controls that use the RTE editor