Skip to content
Snippets Groups Projects
Commit 2420f4b3 authored by Johannes Mey's avatar Johannes Mey
Browse files

throw exception if lookup fails

parent c5ab8070
No related branches found
No related tags found
No related merge requests found
......@@ -263,6 +263,9 @@ aspect Navigation {
// else, interpret the property as a local one of the current component
// this might cause an exception of the property can not be resolved
Optional<Property> property = containingComponent().resolveProperty(qn.getName(0).getName());
if (!property.isPresent()) {
throw new EvalutationException("cannot resolve property " + qn.toString());
}
return new SoftwareDesignator(new Opt<>(),property.get().createRef());
} else {
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment