From 534653c4f58440e1ee709e60d93854161e879ed0 Mon Sep 17 00:00:00 2001 From: Jim Procter Date: Sat, 13 Aug 2016 16:29:09 +0100 Subject: [PATCH] JAL-2154 make sure we wait for constructor thread to finish --- src/jalview/gui/SequenceFetcher.java | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) diff --git a/src/jalview/gui/SequenceFetcher.java b/src/jalview/gui/SequenceFetcher.java index e259913..a9df882 100755 --- a/src/jalview/gui/SequenceFetcher.java +++ b/src/jalview/gui/SequenceFetcher.java @@ -202,7 +202,8 @@ public class SequenceFetcher extends JPanel implements Runnable } private IProgressIndicator progressIndicator; - private boolean _isConstructing=false; + + private volatile boolean _isConstructing = false; private List newAlframes = null; @@ -266,7 +267,7 @@ public class SequenceFetcher extends JPanel implements Runnable try { Thread.sleep(50); } catch (Exception q) { - return Collections.EMPTY_LIST; + return Collections.emptyList(); } } sf.newAlframes = new ArrayList(); -- 1.7.10.2