Skip to main content
aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorBenoit Maggi2016-07-22 04:18:56 -0400
committerBenoit Maggi2016-07-22 04:18:56 -0400
commitc410056f2b7dbd281a3d2aab275f5e8263b02e8a (patch)
tree26a623ddc71188865f12820b24faac6a3347946f /plugins/sysml
parentac73fad107e90c75859602e81b28f78e5354462d (diff)
downloadorg.eclipse.papyrus-c410056f2b7dbd281a3d2aab275f5e8263b02e8a.tar.gz
org.eclipse.papyrus-c410056f2b7dbd281a3d2aab275f5e8263b02e8a.tar.xz
org.eclipse.papyrus-c410056f2b7dbd281a3d2aab275f5e8263b02e8a.zip
Bug 498327 - [SysML 1.1] [Test] Tests failing in Hudson
- also allow null type in matcher for non regression issues Change-Id: If433034faf39916e700b9a23d2dc29a1895c9376 Signed-off-by: Benoit Maggi <benoit.maggi@cea.fr>
Diffstat (limited to 'plugins/sysml')
-rw-r--r--plugins/sysml/org.eclipse.papyrus.sysml.service.types/src/org/eclipse/papyrus/sysml/service/types/matcher/ConstraintPropertyMatcher.java2
1 files changed, 1 insertions, 1 deletions
diff --git a/plugins/sysml/org.eclipse.papyrus.sysml.service.types/src/org/eclipse/papyrus/sysml/service/types/matcher/ConstraintPropertyMatcher.java b/plugins/sysml/org.eclipse.papyrus.sysml.service.types/src/org/eclipse/papyrus/sysml/service/types/matcher/ConstraintPropertyMatcher.java
index df073aa055e..cbfe3973476 100644
--- a/plugins/sysml/org.eclipse.papyrus.sysml.service.types/src/org/eclipse/papyrus/sysml/service/types/matcher/ConstraintPropertyMatcher.java
+++ b/plugins/sysml/org.eclipse.papyrus.sysml.service.types/src/org/eclipse/papyrus/sysml/service/types/matcher/ConstraintPropertyMatcher.java
@@ -34,7 +34,7 @@ public class ConstraintPropertyMatcher implements IElementMatcher {
Property element = (Property) eObject;
Type type = element.getType();
// A ConstraintProperty is necessarily typed by a ConstraintBlock which must be a Class.
- if (type instanceof Class && UMLUtil.getStereotypeApplication(element, ConstraintProperty.class) != null) {
+ if ((type==null || type instanceof Class) && UMLUtil.getStereotypeApplication(element, ConstraintProperty.class) != null) {
isMatch = true;
}
}

Back to the top