Now checks if the i-th element of the FiltrationContext[] is null before trying to access it. This seems to happen occassionally at the very end of a VCF file... the array will be 6 elements long, but the last element will actually be null.
git-svn-id: file:///humgen/gsa-scr1/gsa-engineering/svn_contents/trunk@3097 348d0f76-0448-11de-a6fe-93d51630548a
This commit is contained in:
parent
400684542c
commit
b9d3fc3fbb
|
|
@ -33,7 +33,7 @@ public class ClusteredSnps {
|
|||
|
||||
int currentIndex = i;
|
||||
while ( ++currentIndex < variants.length ) {
|
||||
if ( variants[currentIndex].getVariantContext().isVariant() ) {
|
||||
if ( variants[currentIndex] != null && variants[currentIndex].getVariantContext() != null && variants[currentIndex].getVariantContext().isVariant() ) {
|
||||
if ( ++snpsSeen == snpThreshold ) {
|
||||
right = variants[currentIndex].getVariantContext().getLocation();
|
||||
break;
|
||||
|
|
|
|||
Loading…
Reference in New Issue