From 9c0adada0083bfe2fcb518969013f08ae7c5df3a Mon Sep 17 00:00:00 2001 From: kjvdheide Date: Wed, 24 Jan 2018 12:13:47 +0000 Subject: [PATCH] JAL-2798 added != null check for Aptx trees --- src/jalview/gui/Jalview2XML.java | 3 +++ 1 file changed, 3 insertions(+) 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(); + } } } -- 1.7.10.2