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