Variable parent = context.getParent(graph);
Resource container = parent.getPossibleRepresents(graph);
if(container == null)
- return null;
+ return null;
Map<String,Resource> methods = graph.syncRequest(new UnescapedMethodMapOfResource(container));
Resource predicate = methods.get(name);
if(predicate != null) {
public Map<String, Variable> getVariables(ReadGraph graph, Variable context, Map<String, Variable> map) throws DatabaseException {
Variable parent = context.getParent(graph);
Resource container = parent.getPossibleRepresents(graph);
+ if(container == null)
+ return Collections.emptyMap();
Map<String,Resource> methods = graph.syncRequest(new UnescapedMethodMapOfResource(container));
for(Map.Entry<String, Resource> entry : methods.entrySet()) {
String name = entry.getKey();