Permalink
Browse files
bugfix to avoid calling rdid on invalid read
- Loading branch information...
Showing
with
1 addition
and
1 deletion.
-
+1
−1
aligner.h
|
|
@@ -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