Skip to main content
aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorashatalin2009-02-12 17:35:34 +0000
committerashatalin2009-02-12 17:35:34 +0000
commitcdaa0d30d60c74450e4e7ff415cb422d2b326939 (patch)
tree8aa010912003ee593177fda92c2770f1d9168e7d
parentbd3aa6014303e3d00640ea2e7b2433ce13080105 (diff)
downloadorg.eclipse.gmf-tooling-R2_1_maintenance.tar.gz
org.eclipse.gmf-tooling-R2_1_maintenance.tar.xz
org.eclipse.gmf-tooling-R2_1_maintenance.zip
[260045] - NPE when node mapping has no domain elementv20090212-1755R2_1_maintenance
-rw-r--r--plugins/org.eclipse.gmf.bridge/src/org/eclipse/gmf/internal/bridge/genmodel/navigator/NavigatorHandler.java5
1 files changed, 5 insertions, 0 deletions
diff --git a/plugins/org.eclipse.gmf.bridge/src/org/eclipse/gmf/internal/bridge/genmodel/navigator/NavigatorHandler.java b/plugins/org.eclipse.gmf.bridge/src/org/eclipse/gmf/internal/bridge/genmodel/navigator/NavigatorHandler.java
index 7aba7756a..474a9e798 100644
--- a/plugins/org.eclipse.gmf.bridge/src/org/eclipse/gmf/internal/bridge/genmodel/navigator/NavigatorHandler.java
+++ b/plugins/org.eclipse.gmf.bridge/src/org/eclipse/gmf/internal/bridge/genmodel/navigator/NavigatorHandler.java
@@ -132,6 +132,11 @@ public class NavigatorHandler {
}
Collection<GenNode> result = new LinkedHashSet<GenNode>();
for (GenNode nextNode : myDiagram.getAllNodes()) {
+ if (nextNode.getModelFacet() == null) {
+ // skipping pure design nodes - cannot be incorrect connection
+ // source/target
+ continue;
+ }
if (genClass.getEcoreClass().isSuperTypeOf(nextNode.getDomainMetaClass().getEcoreClass())) {
result.add(nextNode);
}

Back to the top