diff --git a/uSync.BackOffice/Services/uSyncService_Single.cs b/uSync.BackOffice/Services/uSyncService_Single.cs index 1fa3425b..f03bcb37 100644 --- a/uSync.BackOffice/Services/uSyncService_Single.cs +++ b/uSync.BackOffice/Services/uSyncService_Single.cs @@ -51,6 +51,9 @@ public IEnumerable ReportPartial(IList orderedNode foreach (var item in orderedNodes.Skip(options.PageNumber * options.PageSize).Take(options.PageSize)) { + if (item.Node == null) + item.Node = XElement.Load(item.FileName); + var itemType = item.Node.GetItemType(); if (!itemType.InvariantEquals(lastType)) { @@ -341,7 +344,7 @@ public OrderedNodeInfo(string filename, XElement node) { FileName = filename; Node = node; - Key = node.GetKey(); + Key = node?.GetKey() ?? Guid.Empty; } ///