From 2a5443d8e1115cd162dec18ab52089846ec0fdcb Mon Sep 17 00:00:00 2001 From: jprocter Date: Mon, 20 Sep 2010 06:43:46 +0000 Subject: [PATCH] stop race condition when submenu being populated before workflows are discovered --- src/jalview/ws/EnfinEnvision2OneWay.java | 4 ++++ 1 file changed, 4 insertions(+) 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) -- 1.7.10.2