From 4460e8d369b7a6313165847222481eff6fa58859 Mon Sep 17 00:00:00 2001 From: Evan Moore Date: Tue, 29 Oct 2019 13:47:20 -0400 Subject: [PATCH] Get missing crops from configuration --- .../PropertyEditors/ValueConverters/ImageCropperValue.cs | 5 ++--- 1 file changed, 2 insertions(+), 3 deletions(-) diff --git a/src/Umbraco.Core/PropertyEditors/ValueConverters/ImageCropperValue.cs b/src/Umbraco.Core/PropertyEditors/ValueConverters/ImageCropperValue.cs index ab217d3870..a5e69d9650 100644 --- a/src/Umbraco.Core/PropertyEditors/ValueConverters/ImageCropperValue.cs +++ b/src/Umbraco.Core/PropertyEditors/ValueConverters/ImageCropperValue.cs @@ -157,12 +157,11 @@ namespace Umbraco.Core.PropertyEditors.ValueConverters // merge the crop values - the alias + width + height comes from // configuration, but each crop can store its own coordinates - if (Crops == null) return; - var configuredCrops = configuration?.Crops; if (configuredCrops == null) return; - var crops = Crops.ToList(); + //Use Crops if it's not null, otherwise create a new list + var crops = Crops?.ToList() ?? new List(); foreach (var configuredCrop in configuredCrops) {