Missing null check which will cause a YSOD if empty value (#7661)

This commit is contained in:
Shannon Deminick
2020-02-25 05:27:26 +11:00
committed by GitHub
parent 4275401c4b
commit 92da83194a

View File

@@ -47,7 +47,7 @@ namespace Umbraco.Core.PropertyEditors.ValueConverters
value = new ImageCropperValue { Src = sourceString };
}
value.ApplyConfiguration(propertyType.DataType.ConfigurationAs<ImageCropperConfiguration>());
value?.ApplyConfiguration(propertyType.DataType.ConfigurationAs<ImageCropperConfiguration>());
return value;
}