Skip to content

Commit

Permalink
Fix NPE
Browse files Browse the repository at this point in the history
  • Loading branch information
tsantalis committed Dec 9, 2024
1 parent 162b9eb commit 5a32cd8
Show file tree
Hide file tree
Showing 4 changed files with 18 additions and 3 deletions.
4 changes: 3 additions & 1 deletion src/main/java/gr/uom/java/xmi/diff/UMLModelDiff.java
Original file line number Diff line number Diff line change
Expand Up @@ -1124,7 +1124,9 @@ private TreeSet<UMLClassRenameDiff> optimize(TreeSet<UMLClassRenameDiff> diffSet
if(op1.getBodyHashCode() == op2.getBodyHashCode()) {
identicalBodies++;
}
if(op1.getActualSignature().equals(op2.getActualSignature())) {
String actualSignature1 = op1.getActualSignature();
String actualSignature2 = op2.getActualSignature();
if(actualSignature1 != null && actualSignature2 != null && actualSignature1.equals(actualSignature2)) {
identicalSignatures++;
}
}
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -1770,7 +1770,9 @@ public void testConsecutiveChangedStatements() throws Exception {
if(mapper.getContainer1().getName().equals("convertsTagFilterOption") && mapper.getContainer2().getName().equals("convertsTagFilterOption")) {
mapperInfo(mapper, actual);
}
//TODO add junit-console/src/main/java/org/junit/gen5/console/tasks/DiscoveryRequestCreator.java applyFilters()
if(mapper.getContainer1().getName().equals("applyFilters") && mapper.getContainer2().getName().equals("applyFilters")) {
mapperInfo(mapper, actual);
}
}
}
List<String> expected = IOUtils.readLines(new FileReader(EXPECTED_PATH + "junit5-48dd35c9002c80eeb666f56489785d1bf47f9aa4.txt"));
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -3188,7 +3188,9 @@ public void testConsecutiveChangedStatements() throws Exception {
if(mapper.getContainer1().getName().equals("convertsTagFilterOption") && mapper.getContainer2().getName().equals("convertsTagFilterOption")) {
mapperInfo(mapper, actual);
}
//TODO add junit-console/src/main/java/org/junit/gen5/console/tasks/DiscoveryRequestCreator.java applyFilters()
if(mapper.getContainer1().getName().equals("applyFilters") && mapper.getContainer2().getName().equals("applyFilters")) {
mapperInfo(mapper, actual);
}
}
}
List<String> expected = IOUtils.readLines(new FileReader(EXPECTED_PATH + "junit5-48dd35c9002c80eeb666f56489785d1bf47f9aa4.txt"));
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -10,6 +10,15 @@ line range:58-60==line range:58-60
line range:61-63==line range:61-63
line range:49-51==line range:49-51
line range:52-54==line range:52-54
private applyFilters(discoveryRequest TestDiscoveryRequest, options CommandLineOptions) : void -> private applyFilters(discoveryRequest TestDiscoveryRequest, options CommandLineOptions) : void
line range:66-66==line range:66-66
line range:66-66==line range:66-66
line range:68-68==line range:68-68
line range:71-71==line range:71-71
line range:67-69==line range:67-69
line range:70-72==line range:70-72
line range:67-69==line range:67-69
line range:70-72==line range:70-72
public convertsTagFilterOption() : void -> public convertsTagFilterOption() : void
line range:133-133==line range:133-133
line range:137-137==line range:137-137
Expand Down

0 comments on commit 5a32cd8

Please sign in to comment.