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

fix

git-svn-id: svn+ssh://svn.internal.sanger.ac.uk/repos/svn/pathsoft/artemis/trunk@14993 ee4ac58c-ac51-4696-9907-e4b3aa274f04
parent 4c5db590
No related branches found
No related tags found
No related merge requests found
......@@ -59,7 +59,13 @@ public class IndexFastaStream extends StreamSequence
else
{
File fasta = ((FileDocument)doc.getDocument()).getFile();
File fastaIndexFile = new File(fasta.getParentFile().getAbsolutePath(), fasta.getName()+".fai");
File parentDir = fasta.getParentFile();
File fastaIndexFile;
if(parentDir != null)
fastaIndexFile = new File(parentDir.getAbsolutePath(), fasta.getName() + ".fai");
else
fastaIndexFile = new File(fasta.getName() + ".fai");
fastaIndex = new FastaSequenceIndex(fastaIndexFile);
try
......
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