if (!graph.hasStatement(parameter))
return null;
- Variable componentVariable = Variables.getVariable(graph, parameter);
+ Variable componentVariable = Variables.getPossibleVariable(graph, parameter);
+ if (componentVariable == null) {
+ // Resource might be deleted already and therefore no URI available for variable building
+ return null;
+ }
Variable propertyVariable = componentVariable.getProperty(graph, parameter2);
Variable typeVariable = Variables.getVariable(graph, type);