]> gerrit.simantics Code Review - simantics/platform.git/blobdiff - bundles/org.simantics.structural2/src/org/simantics/structural2/variables/ActualConnectionDescriptor.java
Added null check after getPossibleType(STR.Component)
[simantics/platform.git] / bundles / org.simantics.structural2 / src / org / simantics / structural2 / variables / ActualConnectionDescriptor.java
index 716d4a0017014e3cb727a4d1b26c587f71411680..f79bdb0b59187f7509a4b59c228cf0f53a12934d 100644 (file)
@@ -94,7 +94,7 @@ class ActualConnectionDescriptor extends AbstractVariableConnectionPointDescript
                
                StructuralResource2 STR = StructuralResource2.getInstance(graph);
                Resource type = graph.getPossibleType(component, STR.Component);
                
                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;
                
        }
        
                
        }