Skip to main content
aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorashatalin2009-02-12 17:32:46 +0000
committerashatalin2009-02-12 17:32:46 +0000
commit341850947075e576a382c6343a445261c3ea2743 (patch)
tree9b137786f605880675eb2c1ca93bd1808ab98c31
parenteb56e2b401f1f3565161d9f05aa10666656b0cdc (diff)
downloadorg.eclipse.gmf-tooling-341850947075e576a382c6343a445261c3ea2743.tar.gz
org.eclipse.gmf-tooling-341850947075e576a382c6343a445261c3ea2743.tar.xz
org.eclipse.gmf-tooling-341850947075e576a382c6343a445261c3ea2743.zip
[260045] - NPE when node mapping has no domain elementv20090212-1925
-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