isEmpty now checks if mReadBases is null
Since newly created reads have mReadBases == null. This is an effort to centralize the place to check for empty GATKSAMRecords.
This commit is contained in:
parent
8ab3ee9c65
commit
b5de182014
|
|
@ -261,7 +261,7 @@ public class GATKSAMRecord extends BAMRecord {
|
||||||
* @return true if the read has no bases
|
* @return true if the read has no bases
|
||||||
*/
|
*/
|
||||||
public boolean isEmpty() {
|
public boolean isEmpty() {
|
||||||
return this.getReadLength() == 0;
|
return super.getReadBases() == null || super.getReadLength() == 0;
|
||||||
}
|
}
|
||||||
|
|
||||||
/**
|
/**
|
||||||
|
|
|
||||||
Loading…
Reference in New Issue