From 2391d4cda4c356c2b3de3bff75b2804ef3226835 Mon Sep 17 00:00:00 2001 From: Tuukka Lehtonen Date: Fri, 14 Sep 2018 15:38:27 +0300 Subject: [PATCH] Added null check after getPossibleType(STR.Component) gitlab #118 Change-Id: I9b2d5f82ca9eb7a769cde44d925ff93437461175 (cherry picked from commit c837c3cf6d782fa6af127cf2f02d74de2b362fd3) --- .../structural2/variables/ActualConnectionDescriptor.java | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) 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)); -- 2.47.1