Skip to main content
aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
-rw-r--r--plugins/uml/diagram/org.eclipse.papyrus.uml.diagram.common/src/org/eclipse/papyrus/uml/diagram/common/editparts/UMLNodeEditPart.java3
1 files changed, 2 insertions, 1 deletions
diff --git a/plugins/uml/diagram/org.eclipse.papyrus.uml.diagram.common/src/org/eclipse/papyrus/uml/diagram/common/editparts/UMLNodeEditPart.java b/plugins/uml/diagram/org.eclipse.papyrus.uml.diagram.common/src/org/eclipse/papyrus/uml/diagram/common/editparts/UMLNodeEditPart.java
index edad8f3d61d..217df2b72bb 100644
--- a/plugins/uml/diagram/org.eclipse.papyrus.uml.diagram.common/src/org/eclipse/papyrus/uml/diagram/common/editparts/UMLNodeEditPart.java
+++ b/plugins/uml/diagram/org.eclipse.papyrus.uml.diagram.common/src/org/eclipse/papyrus/uml/diagram/common/editparts/UMLNodeEditPart.java
@@ -226,7 +226,8 @@ public abstract class UMLNodeEditPart extends NodeEditPart implements IUMLEditPa
//look for accepted element in compartments to find good compartment
for (String compartmentHint : possibleChildreenIDs) {
List<String> compartmentChildreenIDs=diagramExpansionRegistry.mapChildreen.get(diagramType).parentChildrenRelation.get(compartmentHint);
- if( compartmentChildreenIDs.contains(elementHint)){
+
+ if( compartmentChildreenIDs!=null &&compartmentChildreenIDs.contains(elementHint)){
//find the edipart that can respond to this accepted hint
List<?> subEditParts=getChildren();
for (Object object : subEditParts) {

Back to the top