From 903850deba5454207b27b701490188f5245c4864 Mon Sep 17 00:00:00 2001 From: jprocter Date: Wed, 17 Aug 2011 14:43:49 +0100 Subject: [PATCH] avoid NPE race condition when several threads waiting on a sequence fetcher discovery thread --- src/jalview/gui/SequenceFetcher.java | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) 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; -- 1.7.10.2