JAL-2805 added check for null node sequences during parsing (such as in
authorkjvdheide <kjvanderheide@dundee.ac.uk>
Tue, 9 Jan 2018 15:34:36 +0000 (15:34 +0000)
committerkjvdheide <kjvanderheide@dundee.ac.uk>
Tue, 9 Jan 2018 15:34:36 +0000 (15:34 +0000)
internal nodes)

src/jalview/ext/archaeopteryx/Tree.java

index 76808e8..d0133a1 100644 (file)
@@ -160,8 +160,12 @@ public class Tree implements TreeI
     int i = 0;
     while (iter.hasNext())
     {
+
       SequenceI nodeSeq = iter.next().getSequence();
-      treeSeqs[i++] = nodeSeq;
+      if (nodeSeq != null)
+      {
+        treeSeqs[i++] = nodeSeq;
+      }
     }
     return treeSeqs;
   }