From: Jim Procter Date: Wed, 31 Aug 2016 16:22:32 +0000 (+0100) Subject: JAL-1926 JAL-2106 source DB refs come from SequenceI.getPrimaryDBRefs() X-Git-Tag: Release_2_10_0~47^2~4^2~22 X-Git-Url: http://source.jalview.org/gitweb/?a=commitdiff_plain;h=49321390421afef1f818b3b1ec10badd83e95cc2;p=jalview.git JAL-1926 JAL-2106 source DB refs come from SequenceI.getPrimaryDBRefs() --- diff --git a/src/jalview/ws/sifts/SiftsClient.java b/src/jalview/ws/sifts/SiftsClient.java index dad2b3f..e08b8cb 100644 --- a/src/jalview/ws/sifts/SiftsClient.java +++ b/src/jalview/ws/sifts/SiftsClient.java @@ -324,14 +324,14 @@ public class SiftsClient implements SiftsClientI public DBRefEntryI getValidSourceDBRef(SequenceI seq) throws SiftsException { - DBRefEntry[] dbRefs = seq.getDBRefs(); - if (dbRefs == null || dbRefs.length < 1) + List dbRefs = seq.getPrimaryDBRefs(); + if (dbRefs == null || dbRefs.size() < 1) { throw new SiftsException( "Source DBRef could not be determined. DBRefs might not have been retrieved."); } - for (DBRefEntryI dbRef : dbRefs) + for (DBRefEntry dbRef : dbRefs) { if (dbRef == null || dbRef.getAccessionId() == null || dbRef.getSource() == null)