Skip to content
Open
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
Original file line number Diff line number Diff line change
Expand Up @@ -162,6 +162,12 @@ protected override List<AutomationPeer> GetChildrenCore()
dataItem = item;
}

if (dataItem == null)
{
// skip null items
continue;
}

// try to reuse old peer if it exists either in Current AT or in WeakRefStorage of Peers being sent to Client
ItemAutomationPeer peer = oldChildren[dataItem];
peer = ReusePeerForItem(peer, dataItem);
Expand Down