From: jprocter Date: Wed, 17 Aug 2011 13:43:49 +0000 (+0100) Subject: avoid NPE race condition when several threads waiting on a sequence fetcher discovery... X-Git-Tag: Release_2_7~102 X-Git-Url: http://source.jalview.org/gitweb/?a=commitdiff_plain;h=903850deba5454207b27b701490188f5245c4864;p=jalview.git avoid NPE race condition when several threads waiting on a sequence fetcher discovery thread --- diff --git a/src/jalview/gui/SequenceFetcher.java b/src/jalview/gui/SequenceFetcher.java index 14c0a00..3defa9c 100755 --- a/src/jalview/gui/SequenceFetcher.java +++ b/src/jalview/gui/SequenceFetcher.java @@ -119,7 +119,7 @@ public class SequenceFetcher extends JPanel implements Runnable if (guiWindow != null) { guiWindow.setProgressBar("Initialising Sequence Database Fetchers", - initingThread.hashCode()); + Thread.currentThread().hashCode()); } sfetch = sf; _initingFetcher = false;