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));