Menu

#4 Move element to differently named containment feature

v1.0.0
open
3
2011-05-18
2011-05-18
No

Moving an element to a newly created element using a differently named containment feature causes EMF Compare Diff to crash.

This is caused by org.eclipse.emf.compare.diff.engine.GenericDiffEngine.checkContainmentUpdate(DiffGroup, Match2Elements) [line 252]. If the containment feature name is different, it will check if the match of the new container is equal to the old one. However, getMatchedEObject returns null since the new container has just been added. Ultimately, null.equals() is called leading to a NPE.

Discussion


Log in to post a comment.

MongoDB Logo MongoDB