From: jprocter Date: Mon, 20 Sep 2010 06:43:46 +0000 (+0000) Subject: stop race condition when submenu being populated before workflows are discovered X-Git-Tag: Release_2_6~22 X-Git-Url: http://source.jalview.org/gitweb/?a=commitdiff_plain;h=2a5443d8e1115cd162dec18ab52089846ec0fdcb;p=jalview.git stop race condition when submenu being populated before workflows are discovered --- diff --git a/src/jalview/ws/EnfinEnvision2OneWay.java b/src/jalview/ws/EnfinEnvision2OneWay.java index b36956c..3cb62c1 100644 --- a/src/jalview/ws/EnfinEnvision2OneWay.java +++ b/src/jalview/ws/EnfinEnvision2OneWay.java @@ -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)