Skip to main content
aboutsummaryrefslogtreecommitdiffstats
blob: 3a19c611dae6d53bf5e51e502be6188249eeadc6 (plain) (blame)
1
2
3
4
5
6
7
8
9
@@ -116,7 +116,7 @@
 					// Create targetProperty
 					Property targetProperty = UMLFactory.eINSTANCE.createProperty();
 					targetProperty.setType(sourceType);
-					targetProperty.setName(sourceType.getName().toLowerCase()); // all elements in UML must have a qualified name
+					targetProperty.setName(sourceType.getName() != null ? sourceType.getName().toLowerCase() : "null");
 
 					Association association = UMLFactory.eINSTANCE.createAssociation();
 					association.getMemberEnds().add(sourcePart);

Back to the top