public static Resource structuralTypeResource(ReadGraph graph, Variable component, Resource baseType) throws DatabaseException {
StructuralOverrideData od = StructuralOverrideData.compute(graph, component);
- return od.type();
+ if (od != null)
+ return od.type();
+ return null;
}
public static Resource getComponentType(ReadGraph graph, Variable configuration, Resource component) throws DatabaseException {