From 3d16f15713bbd3cde5ad51ab225bba16fd6d68d1 Mon Sep 17 00:00:00 2001 From: Tuukka Lehtonen Date: Thu, 13 Sep 2018 22:09:39 +0300 Subject: [PATCH] Added null check after getPossibleType(STR.Component) gitlab #118 Change-Id: I89c4f6921c1ee6c6decd833045e9856d4df52011 --- .../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 716d4a001..f79bdb0b5 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 @@ -94,7 +94,7 @@ class ActualConnectionDescriptor extends AbstractVariableConnectionPointDescript StructuralResource2 STR = StructuralResource2.getInstance(graph); Resource type = graph.getPossibleType(component, STR.Component); - return graph.syncRequest(new IsLeafType(type)); + return type != null ? graph.syncRequest(new IsLeafType(type)) : false; } -- 2.47.1