diff --git a/java/src/org/broadinstitute/sting/playground/gatk/walkers/indels/IntervalCleanerWalker.java b/java/src/org/broadinstitute/sting/playground/gatk/walkers/indels/IntervalCleanerWalker.java index c0f9b1746..5e34544e8 100755 --- a/java/src/org/broadinstitute/sting/playground/gatk/walkers/indels/IntervalCleanerWalker.java +++ b/java/src/org/broadinstitute/sting/playground/gatk/walkers/indels/IntervalCleanerWalker.java @@ -225,8 +225,8 @@ public class IntervalCleanerWalker extends LocusWindowWalker // decide which reads potentially need to be cleaned for ( SAMRecord read : reads ) { - // we currently can not deal with clipped reads correctly - if ( readIsClipped(read) ) { + // we currently can not deal with clipped reads correctly (or screwy record) + if ( read.getCigar().numCigarElements() == 0 || readIsClipped(read) ) { refReads.add(read); continue; }