We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 7843453 commit 20ad2c9Copy full SHA for 20ad2c9
src/main/java/htsjdk/samtools/SAMRecord.java
@@ -338,6 +338,7 @@ private boolean hasReferenceName() {
338
*/
339
public boolean isPair(final SAMRecord record) {
340
return record != null
341
+ && this.getReadName().equals(record.getReferenceName())
342
&& this.getMateAlignmentStart() == record.getAlignmentStart()
343
&& record.getMateAlignmentStart() == this.getAlignmentStart()
344
&& !NO_ALIGNMENT_REFERENCE_NAME.equals(this.getMateReferenceName())
0 commit comments