Skip to content

Commit

Permalink
Fixed NPE
Browse files Browse the repository at this point in the history
  • Loading branch information
Daniel Cameron committed Feb 4, 2022
1 parent 92cb449 commit 7d079aa
Showing 1 changed file with 4 additions and 2 deletions.
6 changes: 4 additions & 2 deletions src/main/java/au/edu/wehi/idsv/DirectedEvidenceOrder.java
Original file line number Diff line number Diff line change
Expand Up @@ -41,8 +41,10 @@ public int compare(DirectedEvidence arg1, DirectedEvidence arg2) {
.compare(arg1_nominal2, arg2_nominal2)
.result();
if (cmp != 0) return cmp;
cmp = BySAMStart.compare(arg1, arg2);
if (cmp != 0) return cmp;
if (arg1.getUnderlyingSAMRecord() != null && arg2.getUnderlyingSAMRecord() != null) {
cmp = BySAMStart.compare(arg1, arg2);
if (cmp != 0) return cmp;
}
return arg1.getEvidenceID().compareTo(arg2.getEvidenceID());
}
};
Expand Down

0 comments on commit 7d079aa

Please sign in to comment.