@SCLValue(type = "ReadGraph -> Resource -> [Issue]")\r
public static List<Issue> unitValidator(ReadGraph graph, Resource component) throws DatabaseException {\r
SysdynResource SR = SysdynResource.getInstance(graph);\r
- if(graph.isInstanceOf(component, SR.Variable))\r
+ if(graph.isInstanceOf(component, SR.Variable) && !graph.isInstanceOf(component, SR.Cloud))\r
return variableValidator(graph, component);\r
else if(graph.isInstanceOf(component, SR.Module))\r
return moduleValidator(graph, component);\r
\r
for(Resource connection : graph.getObjects(r, SR.Variable_isTailOf)) {\r
Resource head = graph.getPossibleObject(connection, SR.Variable_HasHead);\r
- if(graph.isInstanceOf(head, SR.Module)) {\r
+ if(head != null && graph.isInstanceOf(head, SR.Module)) {\r
components.add(head);\r
}\r
}\r