From: gmungoc Date: Fri, 19 Feb 2016 16:51:48 +0000 (+0000) Subject: JAL-1705 more lenient test for 'sequence retrieved' X-Git-Tag: Release_2_10_0~296^2~22^2~4 X-Git-Url: http://source.jalview.org/gitweb/?a=commitdiff_plain;h=4b3e12d9f3c2e2ad8a0317160881cef075690e97;p=jalview.git JAL-1705 more lenient test for 'sequence retrieved' --- 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)