Skip to content
Snippets Groups Projects
Commit 56a21c71 authored by Sebastian Krings's avatar Sebastian Krings
Browse files

work around rodin db exception when a symbolic attribute is not set

parent 181b81f1
Branches
No related tags found
No related merge requests found
......@@ -38,8 +38,14 @@ public class SymbolicAttribute extends AbstractBooleanManipulation {
@Override
public String getValue(IRodinElement element, IProgressMonitor monitor)
throws RodinDBException {
try {
return asInternalElement(element).getAttributeValue(ATTRIBUTE) ? SYMBOLIC
: CONCRETE;
} catch (RodinDBException ex) {
// happens if the attribute is not set on this element
// just return a default instead of throwing a RodinDBException
}
return CONCRETE;
}
@Override
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment