Might as well check for the illegal state and throw an exception

This commit is contained in:
Eric Banks 2011-06-29 15:59:10 -04:00
parent 1f19afe1d9
commit 70ba851478
1 changed files with 2 additions and 0 deletions

View File

@ -1010,6 +1010,8 @@ public class IndelRealigner extends ReadWalker<Integer, Integer> {
for ( byte b : indelStr )
sb.append((char)b);
cigar.add(new CigarElement(indelStr.length, CigarOperator.I));
} else {
throw new ReviewedStingException("Creating an alternate consensus from a complex indel is not allowed");
}
if ( reference.length - refIdx > 0 )