Fixes null reference caused in GridPropertyValueEditor when the value is empty

This commit is contained in:
Shannon
2019-10-01 09:48:46 +02:00
parent df6e29a249
commit d677ea618c

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