dont set seqref null if index incorrect
authoramwaterhouse <Andrew Waterhouse>
Wed, 18 Apr 2007 13:35:07 +0000 (13:35 +0000)
committeramwaterhouse <Andrew Waterhouse>
Wed, 18 Apr 2007 13:35:07 +0000 (13:35 +0000)
src/jalview/io/AnnotationFile.java

index 2053fef..2ce076a 100755 (executable)
@@ -367,7 +367,6 @@ public class AnnotationFile
           catch (Exception ex)\r
           {\r
             refSeqIndex = 1;\r
-            refSeq=null;\r
           }\r
 \r
           continue ;\r
@@ -433,6 +432,7 @@ public class AnnotationFile
 \r
         if (refSeq != null)\r
         {\r
+          System.out.println(refSeq.getName()+" "+refSeqIndex);\r
           annotation.createSequenceMapping(refSeq, refSeqIndex, false);\r
           annotation.adjustForAlignment();\r
           refSeq.addAlignmentAnnotation(annotation);\r