Skip to content
Snippets Groups Projects
Commit 766e112a authored by Vincent Aravantinos's avatar Vincent Aravantinos
Browse files

additional guard to make life easier for users of the constraint service

refs 2695
parent 2aa60113
No related branches found
No related tags found
No related merge requests found
......@@ -33,7 +33,7 @@ import org.fortiss.tooling.kernel.utils.ConstraintsUtils;
* @author aravantinos
* @author $Author$
* @version $Rev$
* @ConQAT.Rating YELLOW Hash: 4F22785727155E44757C4F842EBB0AEF
* @ConQAT.Rating YELLOW Hash: 2AC9E67CCFDB1AF1C84A8B58E7C28D38
*/
public class ConstraintBases {
......@@ -95,7 +95,8 @@ public class ConstraintBases {
/** {@inheritDoc} */
@Override
public final IConstraintInstanceStatus verify(ConstraintInstance ci) {
return verify(ConstraintsUtils.getConstrained(ci));
IConstrained constrained = ConstraintsUtils.getConstrained(ci);
return isApplicable(constrained) ? verify(constrained) : null;
}
/** Verify the given constrained element. */
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment