diff options
author | ptessier | 2018-04-20 10:17:43 +0000 |
---|---|---|
committer | Patrick Tessier | 2018-04-20 10:23:23 +0000 |
commit | 6f88b4dd7adb55fba19c38855060df1365dce9a3 (patch) | |
tree | aea90bf01c278a5b74d1751068f86a68b56f3196 | |
parent | e5eb68db960cc952e7534e4e81e492ccaab46812 (diff) | |
download | org.eclipse.papyrus-6f88b4dd7adb55fba19c38855060df1365dce9a3.tar.gz org.eclipse.papyrus-6f88b4dd7adb55fba19c38855060df1365dce9a3.tar.xz org.eclipse.papyrus-6f88b4dd7adb55fba19c38855060df1365dce9a3.zip |
Bug 533864 - Crash of table when the a column reference a property of
stereotype that does not exist anymore
Change-Id: I82bf450461b0f8e4a07ff0e1bd132c09d4ff63f4
-rw-r--r-- | plugins/uml/nattable/org.eclipse.papyrus.uml.nattable/src/org/eclipse/papyrus/uml/nattable/config/UMLStereotypeSingleDataTypeCellEditorConfiguration.java | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/plugins/uml/nattable/org.eclipse.papyrus.uml.nattable/src/org/eclipse/papyrus/uml/nattable/config/UMLStereotypeSingleDataTypeCellEditorConfiguration.java b/plugins/uml/nattable/org.eclipse.papyrus.uml.nattable/src/org/eclipse/papyrus/uml/nattable/config/UMLStereotypeSingleDataTypeCellEditorConfiguration.java index 74f251e17c0..5c575a48270 100644 --- a/plugins/uml/nattable/org.eclipse.papyrus.uml.nattable/src/org/eclipse/papyrus/uml/nattable/config/UMLStereotypeSingleDataTypeCellEditorConfiguration.java +++ b/plugins/uml/nattable/org.eclipse.papyrus.uml.nattable/src/org/eclipse/papyrus/uml/nattable/config/UMLStereotypeSingleDataTypeCellEditorConfiguration.java @@ -74,8 +74,8 @@ public class UMLStereotypeSingleDataTypeCellEditorConfiguration implements ICell final String id = AxisUtils.getPropertyId(axisElement); if (id != null && id.startsWith(UMLTableUtils.PROPERTY_OF_STEREOTYPE_PREFIX)) { final Property prop = UMLTableUtils.getRealStereotypeProperty(table.getContext(), id); - final Type type = prop.getType(); if (null != prop && !prop.isMultivalued()) { + final Type type = prop.getType(); result = type instanceof DataType && !(type instanceof Enumeration) && !(type instanceof PrimitiveType); } } |