diff --git a/java/src/org/broadinstitute/sting/gatk/datasources/reads/LowMemoryIntervalSharder.java b/java/src/org/broadinstitute/sting/gatk/datasources/reads/LowMemoryIntervalSharder.java index bde5cb9f7..40c2cb1af 100644 --- a/java/src/org/broadinstitute/sting/gatk/datasources/reads/LowMemoryIntervalSharder.java +++ b/java/src/org/broadinstitute/sting/gatk/datasources/reads/LowMemoryIntervalSharder.java @@ -119,7 +119,7 @@ public class LowMemoryIntervalSharder implements Iterator { if(!nextFilePointer.locations.isEmpty()) { while(locusIterator.hasNext() && locusIterator.peek().overlapsP(coveredRegion)) { currentLocus = locusIterator.next(); - nextFilePointer.addLocation(locusIterator.next()); + nextFilePointer.addLocation(currentLocus.intersect(coveredRegion)); } // Chop off the uncovered portion of the locus. Since we know that the covered region overlaps the current locus,