From 073064628916162b8136d6cdd26c3a74b81f78db Mon Sep 17 00:00:00 2001 From: Dmitry Dzygin Date: Mon, 14 Aug 2017 15:39:45 +0200 Subject: [PATCH] Fixing an exception when getting children for a tree element that doesn't exist any more --- Composite/C1Console/Trees/DataFolderElementsTreeNode.cs | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/Composite/C1Console/Trees/DataFolderElementsTreeNode.cs b/Composite/C1Console/Trees/DataFolderElementsTreeNode.cs index 48e7999c7c..a35916095f 100644 --- a/Composite/C1Console/Trees/DataFolderElementsTreeNode.cs +++ b/Composite/C1Console/Trees/DataFolderElementsTreeNode.cs @@ -193,7 +193,7 @@ protected override IEnumerable OnGetElements(EntityToken parentEntityTo if (dataEntityToken != null) { var data = dataEntityToken.Data; - Verify.IsNotNull(data, "data is null, " + dataEntityToken); + if (data == null) return Enumerable.Empty(); referenceType = this.ChildGeneratingParentIdFilterNode.KeyPropertyInfo.DeclaringType; referenceValue = this.ChildGeneratingParentIdFilterNode.KeyPropertyInfo.GetValue(data, null);