commit | fe1adbf6103e819a78dfc8bb2546d16e095f1fa0 | [log] [tgz] |
---|---|---|
author | Daniel StrĂ¼ber <strueber@mathematik.uni-marburg.de> | Thu Dec 08 16:04:54 2016 +0100 |
committer | Daniel Strueber <strueber@mathematik.uni-marburg.de> | Fri Dec 09 05:16:22 2016 -0400 |
tree | a6b6c170861ea6fb0386fde78c1245eb9d584e5c | |
parent | e48e9af905cccbd96b225dd531683c965a8b472c [diff] |
Fix bug during creation of edges Change-Id: Ibe3612c52fefa09ef8813c0b411002b3c7af1f71
diff --git a/plugins/org.eclipse.emf.henshin.model/src/org/eclipse/emf/henshin/model/impl/RuleImpl.java b/plugins/org.eclipse.emf.henshin.model/src/org/eclipse/emf/henshin/model/impl/RuleImpl.java index ba27ef1..ccb05c1 100644 --- a/plugins/org.eclipse.emf.henshin.model/src/org/eclipse/emf/henshin/model/impl/RuleImpl.java +++ b/plugins/org.eclipse.emf.henshin.model/src/org/eclipse/emf/henshin/model/impl/RuleImpl.java
@@ -825,7 +825,8 @@ private boolean forbidEdgeExists(Node source, Node target, EReference type) { - if (source.getAction().getType() != Action.Type.PRESERVE && + if (source.getAction() == null || target.getAction() == null || + source.getAction().getType() != Action.Type.PRESERVE && target.getAction().getType() != Action.Type.PRESERVE) return false;