stop race condition when submenu being populated before workflows are discovered
authorjprocter <Jim Procter>
Mon, 20 Sep 2010 06:43:46 +0000 (06:43 +0000)
committerjprocter <Jim Procter>
Mon, 20 Sep 2010 06:43:46 +0000 (06:43 +0000)
src/jalview/ws/EnfinEnvision2OneWay.java

index b36956c..3cb62c1 100644 (file)
@@ -366,6 +366,10 @@ public class EnfinEnvision2OneWay extends DefaultHandler implements
   private void buildGroupLinkMenu(JMenu enfinServiceMenu,
           AlignFrame alignFrame)
   {
+    if (running || !started)
+    {
+      return;
+    }
     SequenceI[] seqs = alignFrame.getViewport().getSelectionAsNewSequence();
     SequenceGroup sg = alignFrame.getViewport().getSelectionGroup();
     if (sg == null)