From e13faf21ee1dfe1f5dec75df9ef4dc42372b67b7 Mon Sep 17 00:00:00 2001 From: gmungoc Date: Tue, 24 Apr 2018 15:08:26 +0100 Subject: [PATCH] JAL-2939 exit calc thread if no HMM in alignment --- src/jalview/workers/InformationThread.java | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/src/jalview/workers/InformationThread.java b/src/jalview/workers/InformationThread.java index cf42425..d719189 100644 --- a/src/jalview/workers/InformationThread.java +++ b/src/jalview/workers/InformationThread.java @@ -44,6 +44,10 @@ public class InformationThread extends AlignCalcWorker @Override public void run() { + if (alignViewport.getAlignment().getHmmSequences().isEmpty()) + { + return; + } if (calcMan.isPending(this)) { return; -- 1.7.10.2