in progress
[jalview.git] / forester / java / src / org / forester / archaeopteryx / ArchaeopteryxA.java
index a471f2f..d204f5f 100644 (file)
@@ -60,13 +60,15 @@ public class ArchaeopteryxA extends JApplet {
             getMainFrameApplet().close();
         }
     }
+    
+    
 
     /**
      * This method returns the current external node data which
      * has been selected by the user by clicking the "Return ..."
      * menu item. This method is expected to be called from Javascript or
      * something like it.
-     * 
+     *
      * @return current external node data as String
      */
     public String getCurrentExternalNodesDataBuffer() {
@@ -141,6 +143,15 @@ public class ArchaeopteryxA extends JApplet {
                     .isValidatePhyloXmlAgainstSchema(), configuration.isReplaceUnderscoresInNhParsing(), configuration
                     .isInternalNumberAreConfidenceForNhParsing(), configuration.getTaxonomyExtraction(), configuration
                     .isMidpointReroot() );
+            if ( phys == null ) {
+                ForesterUtil.printErrorMessage( NAME, "phylogenies from [" + tree_url + "] are null" );
+            }
+            else if ( phys.length < 1 ) {
+                ForesterUtil.printErrorMessage( NAME, "phylogenies from [" + tree_url + "] are empty" );
+            }
+            else {
+                AptxUtil.printAppletMessage( NAME, "loaded " + phys.length + " phylogenies from: " + tree_url );
+            }
             AptxUtil.printAppletMessage( ArchaeopteryxA.NAME, "loaded " + phys.length + " phylogenies from: "
                     + tree_url );
             AptxUtil.addPhylogeniesToTabs( phys,
@@ -186,7 +197,7 @@ public class ArchaeopteryxA extends JApplet {
 
     /**
      * Prints message when initialization is finished. Called automatically.
-     * 
+     *
      * @param g
      *            Graphics
      */