Skip to content

Commit

Permalink
Fix for issue #843
Browse files Browse the repository at this point in the history
  • Loading branch information
tsantalis committed Jan 5, 2025
1 parent 70a4210 commit ff44382
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions src/main/java/gr/uom/java/xmi/diff/UMLModelDiff.java
Original file line number Diff line number Diff line change
Expand Up @@ -3062,7 +3062,7 @@ else if(candidate.getOriginalVariableDeclaration() != null) {
else {
originalClassDiff = getUMLClassDiff(candidate.getOperationBefore().getClassName());
}
if(diffs1.size() > 1) {
if(diffs1.size() > 1 && originalClassDiff != null) {
for(UMLClassBaseDiff classDiff : diffs1) {
if(isSubclassOf(originalClassDiff.nextClass.getName(), classDiff.nextClass.getName())) {
diff1 = classDiff;
Expand Down Expand Up @@ -3099,7 +3099,7 @@ else if(!diffs2.isEmpty()) {
else {
originalClassDiff = getUMLClassDiff(candidate.getOperationBefore().getClassName());
}
if(diffs2.size() > 1) {
if(diffs2.size() > 1 && originalClassDiff != null) {
for(UMLClassBaseDiff classDiff : diffs2) {
if(isSubclassOf(originalClassDiff.nextClass.getName(), classDiff.nextClass.getName())) {
diff2 = classDiff;
Expand Down

0 comments on commit ff44382

Please sign in to comment.