From: kjvdheide Date: Wed, 24 Jan 2018 12:13:47 +0000 (+0000) Subject: JAL-2798 added != null check for Aptx trees X-Git-Url: http://source.jalview.org/gitweb/?a=commitdiff_plain;h=9c0adada0083bfe2fcb518969013f08ae7c5df3a;p=jalview.git JAL-2798 added != null check for Aptx trees --- diff --git a/src/jalview/gui/Jalview2XML.java b/src/jalview/gui/Jalview2XML.java index 93a7bcc..c0246c3 100644 --- a/src/jalview/gui/Jalview2XML.java +++ b/src/jalview/gui/Jalview2XML.java @@ -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(); + } } }