Permalink
Browse files

bugfix to avoid calling rdid on invalid read

  • Loading branch information...
1 parent 8f325d4 commit 3acd6facb8508acb15f588c25beb07a00d55a9ac @BenLangmead committed Apr 16, 2017
Showing with 1 addition and 1 deletion.
  1. +1 −1 aligner.h
View
@@ -279,7 +279,7 @@ class MixedMultiAligner {
// Get a new read
pair<bool, bool> ret = ps->nextReadPair();
saw_last_read = ret.second;
- if(ps->rdid() < qUpto_ && ret.first) {
+ if(ret.first && ps->rdid() < qUpto_) {
if(ps->paired()) {
// Read currently in buffer is paired-end
(*alignersPE_)[0]->setQuery(ps);

0 comments on commit 3acd6fa

Please sign in to comment.