Skip to content

Commit

Permalink
Fixing an exception when getting children for a tree element that doe…
Browse files Browse the repository at this point in the history
…sn't exist any more
  • Loading branch information
napernik committed Aug 14, 2017
1 parent 2c4542e commit 0730646
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion Composite/C1Console/Trees/DataFolderElementsTreeNode.cs
Original file line number Diff line number Diff line change
Expand Up @@ -193,7 +193,7 @@ protected override IEnumerable<Element> OnGetElements(EntityToken parentEntityTo
if (dataEntityToken != null)
{
var data = dataEntityToken.Data;
Verify.IsNotNull(data, "data is null, " + dataEntityToken);
if (data == null) return Enumerable.Empty<Element>();

referenceType = this.ChildGeneratingParentIdFilterNode.KeyPropertyInfo.DeclaringType;
referenceValue = this.ChildGeneratingParentIdFilterNode.KeyPropertyInfo.GetValue(data, null);
Expand Down

0 comments on commit 0730646

Please sign in to comment.