From: Marko Luukkainen Date: Mon, 17 Dec 2018 17:32:41 +0000 (+0200) Subject: Resolving a variable for name that has no Resource representation fails. X-Git-Tag: v1.43.0~136^2~223 X-Git-Url: https://gerrit.simantics.org/r/gitweb?p=simantics%2Fplatform.git;a=commitdiff_plain;h=69d61f8a5c49c5b6044f6e0cbc0723fa2e6ef164 Resolving a variable for name that has no Resource representation fails. gitlab #235 Change-Id: I673f6fec7f66ae0f16179c299a0f747c4f595cec --- diff --git a/bundles/org.simantics.structural2/src/org/simantics/structural2/Functions.java b/bundles/org.simantics.structural2/src/org/simantics/structural2/Functions.java index 36461419d..f3f9344aa 100644 --- a/bundles/org.simantics.structural2/src/org/simantics/structural2/Functions.java +++ b/bundles/org.simantics.structural2/src/org/simantics/structural2/Functions.java @@ -572,7 +572,6 @@ public class Functions { if(represents == null) return null; Map children = graph.syncRequest(new UnescapedChildMapOfResource(represents)); Resource child = children.get(name); - if(child == null) return null; return StandardChildDomainChildren.getStandardChildDomainChildVariable(graph, context, child, name); }