diff --git a/uSync.Core/Serialization/Serializers/ContentTypeBaseSerializer.cs b/uSync.Core/Serialization/Serializers/ContentTypeBaseSerializer.cs index 281f956e..509e113a 100644 --- a/uSync.Core/Serialization/Serializers/ContentTypeBaseSerializer.cs +++ b/uSync.Core/Serialization/Serializers/ContentTypeBaseSerializer.cs @@ -180,6 +180,8 @@ protected XElement SerializeStructure(TObject item) var node = new XElement("Structure"); List> items = new List>(); + if (item.AllowedContentTypes is null) return node; + foreach (var allowedType in item.AllowedContentTypes.OrderBy(x => x.SortOrder)) { var allowedItem = FindItem(allowedType.Id.Value);