From 4b3e12d9f3c2e2ad8a0317160881cef075690e97 Mon Sep 17 00:00:00 2001 From: gmungoc Date: Fri, 19 Feb 2016 16:51:48 +0000 Subject: [PATCH] JAL-1705 more lenient test for 'sequence retrieved' --- src/jalview/gui/SequenceFetcher.java | 13 +++++++------ 1 file changed, 7 insertions(+), 6 deletions(-) diff --git a/src/jalview/gui/SequenceFetcher.java b/src/jalview/gui/SequenceFetcher.java index 742a109..fc6fb0d 100755 --- a/src/jalview/gui/SequenceFetcher.java +++ b/src/jalview/gui/SequenceFetcher.java @@ -642,13 +642,14 @@ public class SequenceFetcher extends JPanel implements Runnable boolean rfound = false; for (int r = 0; r < rs.length; r++) { - if (rs[r] != null - && (found = DBRefUtils.searchRefs( - rs[r].getDBRefs(), dbr)) != null - && found.length > 0) + if (rs[r] != null) { - rfound = true; - rs[r] = null; + found = DBRefUtils.searchRefs(rs[r].getDBRefs(), accId); + if (found != null && found.length > 0) + { + rfound = true; + rs[r] = null; + } } } if (!rfound) -- 1.7.10.2