X-Git-Url: https://gerrit.simantics.org/r/gitweb?a=blobdiff_plain;f=bundles%2Forg.simantics.structural2%2Fsrc%2Forg%2Fsimantics%2Fstructural2%2Fvariables%2FActualConnectionDescriptor.java;h=db2d5eae283f4d617fadf8c20243c7fcaea0e506;hb=2391d4cda4c356c2b3de3bff75b2804ef3226835;hp=e0b93837ee9765deac16ba1ba2ce4dc1af5e6198;hpb=ee1397874270531eca45885a3e785d5b43e167e6;p=simantics%2Fplatform.git diff --git a/bundles/org.simantics.structural2/src/org/simantics/structural2/variables/ActualConnectionDescriptor.java b/bundles/org.simantics.structural2/src/org/simantics/structural2/variables/ActualConnectionDescriptor.java index e0b93837e..db2d5eae2 100644 --- a/bundles/org.simantics.structural2/src/org/simantics/structural2/variables/ActualConnectionDescriptor.java +++ b/bundles/org.simantics.structural2/src/org/simantics/structural2/variables/ActualConnectionDescriptor.java @@ -47,7 +47,7 @@ class ActualConnectionDescriptor extends AbstractVariableConnectionPointDescript StructuralResource2 STR = StructuralResource2.getInstance(graph); Resource type = graph.getPossibleType(parameter.component, STR.Component); - if(graph.syncRequest(new IsLeafType(type))) return null; + if (type != null && graph.syncRequest(new IsLeafType(type))) return null; return Functions.computeInterfacePaths(graph, parameter.getVariable(graph).getParent(graph));