Merge pull request #6493 from umbraco/v8/bugfix/GridPropertyEditor-NullReference

Fixes null reference caused in GridPropertyValueEditor when the value is empty
This commit is contained in:
Bjarke Berg
2019-10-08 10:06:26 +02:00
committed by GitHub

View File

@@ -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<GridValue>(rawJson);
// Find all controls that use the RTE editor