AB3329 - Handle empty strings from nested content

This commit is contained in:
Bjarke Berg
2019-10-29 08:53:00 +01:00
parent 8d4de3de55
commit 34a0210d9d

View File

@@ -37,9 +37,9 @@ namespace Umbraco.Web.PropertyEditors
public IEnumerable<UmbracoEntityReference> GetReferences(object value)
{
if (value == null) yield break;
var asString = value is string str ? str : value?.ToString();
var asString = value is string str ? str : value.ToString();
if (string.IsNullOrEmpty(asString)) yield break;
yield return new UmbracoEntityReference(Udi.Parse(asString));
}