Skip to main content
aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorMickael ADAM2016-10-24 09:28:55 -0400
committerGerrit Code Review @ Eclipse.org2016-10-24 10:04:20 -0400
commite56e180f754c03ab690aab82b8d41fef02fc7ac1 (patch)
treec2ccdc12f0c95c9d6594611b3b5ee7d42bd17c8a /plugins
parent8d461ef1b814327dc9763a754a749afdbb73ae2e (diff)
downloadorg.eclipse.papyrus-e56e180f754c03ab690aab82b8d41fef02fc7ac1.tar.gz
org.eclipse.papyrus-e56e180f754c03ab690aab82b8d41fef02fc7ac1.tar.xz
org.eclipse.papyrus-e56e180f754c03ab690aab82b8d41fef02fc7ac1.zip
Bug 506440 - [Model Explorer] ClassCastException when add qualify name
at customizable label provider with comment https://bugs.eclipse.org/bugs/show_bug.cgi?id=506440 Change-Id: Ie17e48015447299ea9a97d080f5f67e15422b745 Signed-off-by: Mickael ADAM <mickael.adam@ALL4TEC.net>
Diffstat (limited to 'plugins')
-rw-r--r--plugins/uml/tools/org.eclipse.papyrus.uml.tools/src/org/eclipse/papyrus/uml/tools/providers/CustomizableDelegatingItemLabelProvider.java4
1 files changed, 3 insertions, 1 deletions
diff --git a/plugins/uml/tools/org.eclipse.papyrus.uml.tools/src/org/eclipse/papyrus/uml/tools/providers/CustomizableDelegatingItemLabelProvider.java b/plugins/uml/tools/org.eclipse.papyrus.uml.tools/src/org/eclipse/papyrus/uml/tools/providers/CustomizableDelegatingItemLabelProvider.java
index 8ac70ed3759..10bb069cfbd 100644
--- a/plugins/uml/tools/org.eclipse.papyrus.uml.tools/src/org/eclipse/papyrus/uml/tools/providers/CustomizableDelegatingItemLabelProvider.java
+++ b/plugins/uml/tools/org.eclipse.papyrus.uml.tools/src/org/eclipse/papyrus/uml/tools/providers/CustomizableDelegatingItemLabelProvider.java
@@ -324,7 +324,9 @@ public class CustomizableDelegatingItemLabelProvider implements IItemLabelProvid
result = SEPARATOR_COLON;
break;
case QUALIFY_NAME:
- result = ((NamedElement) element).getQualifiedName();
+ if (element instanceof NamedElement && null != ((NamedElement) element).getQualifiedName()) {
+ result = ((NamedElement) element).getQualifiedName();
+ }
break;
default:

Back to the top