add null check to multiurlpickervalueconverter IsValue() function umbraco#12186

This commit is contained in:
Reiter
2022-03-29 18:29:50 +02:00
committed by Michael Latouche
parent c218c068bd
commit 6eebd96605

View File

@@ -41,7 +41,7 @@ namespace Umbraco.Cms.Core.PropertyEditors.ValueConverters
public override PropertyCacheLevel GetPropertyCacheLevel(IPublishedPropertyType propertyType) => PropertyCacheLevel.Snapshot;
public override bool? IsValue(object value, PropertyValueLevel level) => value?.ToString() != "[]";
public override bool? IsValue(object value, PropertyValueLevel level) => value != null && value.ToString() != "[]";
public override object ConvertSourceToIntermediate(IPublishedElement owner, IPublishedPropertyType propertyType, object source, bool preview) => source?.ToString();