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
Tags
No related merge requests found
...@@ -38,8 +38,14 @@ public class SymbolicAttribute extends AbstractBooleanManipulation { ...@@ -38,8 +38,14 @@ public class SymbolicAttribute extends AbstractBooleanManipulation {
@Override @Override
public String getValue(IRodinElement element, IProgressMonitor monitor) public String getValue(IRodinElement element, IProgressMonitor monitor)
throws RodinDBException { throws RodinDBException {
try {
return asInternalElement(element).getAttributeValue(ATTRIBUTE) ? SYMBOLIC return asInternalElement(element).getAttributeValue(ATTRIBUTE) ? SYMBOLIC
: CONCRETE; : 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 @Override
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment