Skip to main content
aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorashatalin2009-02-12 12:32:21 -0500
committerashatalin2009-02-12 12:32:21 -0500
commit1ee53f3d01fdd307eb4adbfdce7b25fb98a3b47f (patch)
tree94b197f11081712dcb91de6bcce0fc5a8e3f32b9 /plugins/org.eclipse.gmf.codegen/templates.migrated/xpt/diagram/updater
parentbe9c8207064fb6a82a3f4ac2d088553bd41fb857 (diff)
downloadorg.eclipse.gmf-tooling-1ee53f3d01fdd307eb4adbfdce7b25fb98a3b47f.tar.gz
org.eclipse.gmf-tooling-1ee53f3d01fdd307eb4adbfdce7b25fb98a3b47f.tar.xz
org.eclipse.gmf-tooling-1ee53f3d01fdd307eb4adbfdce7b25fb98a3b47f.zip
[260045] - NPE when node mapping has no domain element
Diffstat (limited to 'plugins/org.eclipse.gmf.codegen/templates.migrated/xpt/diagram/updater')
-rw-r--r--plugins/org.eclipse.gmf.codegen/templates.migrated/xpt/diagram/updater/Utils.qvto2
1 files changed, 1 insertions, 1 deletions
diff --git a/plugins/org.eclipse.gmf.codegen/templates.migrated/xpt/diagram/updater/Utils.qvto b/plugins/org.eclipse.gmf.codegen/templates.migrated/xpt/diagram/updater/Utils.qvto
index f461b32d2..9deb8b939 100644
--- a/plugins/org.eclipse.gmf.codegen/templates.migrated/xpt/diagram/updater/Utils.qvto
+++ b/plugins/org.eclipse.gmf.codegen/templates.migrated/xpt/diagram/updater/Utils.qvto
@@ -54,7 +54,7 @@ helper genModel::TypeLinkModelFacet::isOutgoingLink() : Boolean {
}
helper getAllSemanticDiagramElements(diagram : genModel::GenDiagram) : Sequence(genModel::GenLinkEnd) {
- return ((diagram.getAllNodes()->asSequence())[genModel::GenLinkEnd]->union(diagram.links->asSequence()))[genModel::GenLinkEnd]->select(linkEnd | null <> linkEnd.getMetaClass())
+ return ((diagram.getAllNodes()->asSequence())[genModel::GenLinkEnd]->union(diagram.links->asSequence()))[genModel::GenLinkEnd]->select(linkEnd | not linkEnd.getMetaClass().oclIsUndefined())
}
helper getAllSemanticElements(diagram : genModel::GenDiagram) : Sequence(genModel::GenCommonBase) {

Back to the top