Skip to content
Snippets Groups Projects
Commit 2dfde6a8 authored by tjc's avatar tjc
Browse files

catch ArrayIndexOutOfBoundsException thrown by tabix when reference is not found

git-svn-id: svn+ssh://svn.internal.sanger.ac.uk/repos/svn/pathsoft/artemis/trunk@16203 ee4ac58c-ac51-4696-9907-e4b3aa274f04
parent a27f0639
No related branches found
No related tags found
No related merge requests found
......@@ -64,7 +64,16 @@ public abstract class AbstractVCFReader
else
{
if(tabixIterator == null)
tabixIterator = ((TabixReader)this).query(chr+":"+sbeg+"-"+send);
{
try
{
tabixIterator = ((TabixReader)this).query(chr+":"+sbeg+"-"+send);
}
catch(ArrayIndexOutOfBoundsException aob)
{
System.err.println(chr+":"+sbeg+"-"+send+" not found in "+((TabixReader)this).getFileName());
}
}
if(tabixIterator == null)
return null;
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment