diff --git a/src/main/java/gr/uom/java/xmi/diff/UMLModelDiff.java b/src/main/java/gr/uom/java/xmi/diff/UMLModelDiff.java index ea567cf01..1f7e688ac 100644 --- a/src/main/java/gr/uom/java/xmi/diff/UMLModelDiff.java +++ b/src/main/java/gr/uom/java/xmi/diff/UMLModelDiff.java @@ -1806,7 +1806,7 @@ private boolean instanceAttributeMovedAlongWithMethod(UMLAttribute addedAttribut } } if(targetClassDiff != null) { - for(UMLAttribute attribute : targetClassDiff.getOriginalClass().getAttributes()) { + for(UMLAttribute attribute : targetClassDiff.getRemovedAttributes()) { if(attribute.getType() != null && removedAttribute.getClassName().endsWith(attribute.getType().getClassType())) { return true; }