JAL-2939 exit calc thread if no HMM in alignment
authorgmungoc <g.m.carstairs@dundee.ac.uk>
Tue, 24 Apr 2018 14:08:26 +0000 (15:08 +0100)
committergmungoc <g.m.carstairs@dundee.ac.uk>
Tue, 24 Apr 2018 14:08:26 +0000 (15:08 +0100)
src/jalview/workers/InformationThread.java

index cf42425..d719189 100644 (file)
@@ -44,6 +44,10 @@ public class InformationThread extends AlignCalcWorker
   @Override
   public void run()
   {
+    if (alignViewport.getAlignment().getHmmSequences().isEmpty())
+    {
+      return;
+    }
     if (calcMan.isPending(this))
     {
       return;