From: Jim Procter Date: Sat, 13 Aug 2016 15:29:09 +0000 (+0100) Subject: JAL-2154 make sure we wait for constructor thread to finish X-Git-Tag: Release_2_10_0~47^2~4^2~43^2~50 X-Git-Url: http://source.jalview.org/gitweb/?a=commitdiff_plain;h=534653c4f58440e1ee709e60d93854161e879ed0;p=jalview.git JAL-2154 make sure we wait for constructor thread to finish --- 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();