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:
Mauricio Carneiro 2011-11-18 18:34:05 -05:00
parent 8ab3ee9c65
commit b5de182014
1 changed files with 1 additions and 1 deletions

View File

@ -261,7 +261,7 @@ public class GATKSAMRecord extends BAMRecord {
* @return true if the read has no bases
*/
public boolean isEmpty() {
return this.getReadLength() == 0;
return super.getReadBases() == null || super.getReadLength() == 0;
}
/**