midpoint rooting is faster
[jalview.git] / forester / java / src / org / forester / phylogeny / data / Annotation.java
index 4e9eb08..829707a 100644 (file)
@@ -49,7 +49,7 @@ public class Annotation implements PhylogenyData, MultipleUris, Comparable<Annot
         if ( ForesterUtil.isEmpty( ref ) ) {
             throw new IllegalArgumentException( "annotation reference is empty or null" );
         }
-        if ( ( ref.indexOf( ':' ) < 1 ) || ( ref.length() < 3 ) ) {
+        if ( ( ref.indexOf( ':' ) < 1 ) || ( ref.indexOf( ':' ) > ref.length() - 2 ) || ( ref.length() < 3 ) ) {
             throw new IllegalArgumentException( "illegal format for annotation reference: [" + ref + "]" );
         }
         _ref = ref;