JAL-2798 added != null check for Aptx trees
authorkjvdheide <kjvanderheide@dundee.ac.uk>
Wed, 24 Jan 2018 12:13:47 +0000 (12:13 +0000)
committerkjvdheide <kjvanderheide@dundee.ac.uk>
Wed, 24 Jan 2018 12:13:47 +0000 (12:13 +0000)
src/jalview/gui/Jalview2XML.java

index 93a7bcc..c0246c3 100644 (file)
@@ -3575,6 +3575,8 @@ public class Jalview2XML
           JalviewModelSequence jms, AlignViewport av)
   {
     String treeFile = copyJarEntry(jprovider, "aptx-test", "aptx", null);
+    if (treeFile != null)
+    {
     try
     {
       AptxInit.createInstancesFromFile(treeFile, av);
@@ -3582,6 +3584,7 @@ public class Jalview2XML
     {
       // TODO Auto-generated catch block
       e.printStackTrace();
+      }
     }
     
   }