Fix exception in block weighting minus function.
git-svn-id: file:///humgen/gsa-scr1/gsa-engineering/svn_contents/trunk@5628 348d0f76-0448-11de-a6fe-93d51630548a
This commit is contained in:
parent
9ee30ce594
commit
5849e112e1
|
|
@ -105,7 +105,14 @@ class FilePointer {
|
|||
PeekableIterator<Map.Entry<SAMReaderID,SAMFileSpan>> thisIterator = new PeekableIterator<Map.Entry<SAMReaderID,SAMFileSpan>>(this.fileSpans.entrySet().iterator());
|
||||
PeekableIterator<Map.Entry<SAMReaderID,SAMFileSpan>> otherIterator = new PeekableIterator<Map.Entry<SAMReaderID,SAMFileSpan>>(other.fileSpans.entrySet().iterator());
|
||||
|
||||
while(thisIterator.hasNext() || otherIterator.hasNext()) {
|
||||
while(thisIterator.hasNext()) {
|
||||
// If there are no elements left in the 'other' iterator, spin out this iterator.
|
||||
if(!otherIterator.hasNext()) {
|
||||
difference += ((GATKBAMFileSpan)thisIterator.next()).size();
|
||||
continue;
|
||||
}
|
||||
|
||||
// Otherwise, compare the latest value.
|
||||
int compareValue = thisIterator.peek().getKey().compareTo(otherIterator.peek().getKey());
|
||||
|
||||
if(compareValue < 0) {
|
||||
|
|
|
|||
Loading…
Reference in New Issue