Fix possible null error

This commit is contained in:
Bjarke Berg
2022-06-09 09:53:28 +02:00
parent 2ab1518862
commit d7b015d8c9

View File

@@ -20,7 +20,7 @@ namespace Umbraco.Cms.Core.Models
public string? NodeType { get; set; }
[DataMember(Name = "udi")]
public Udi NodeUdi => NodeType == Constants.UdiEntityType.Unknown ? null : Udi.Create(NodeType, NodeKey);
public Udi? NodeUdi => NodeType == Constants.UdiEntityType.Unknown ? null : Udi.Create(NodeType, NodeKey);
[DataMember(Name = "icon")]
public string? ContentTypeIcon { get; set; }