From 49321390421afef1f818b3b1ec10badd83e95cc2 Mon Sep 17 00:00:00 2001 From: Jim Procter Date: Wed, 31 Aug 2016 17:22:32 +0100 Subject: [PATCH] JAL-1926 JAL-2106 source DB refs come from SequenceI.getPrimaryDBRefs() --- src/jalview/ws/sifts/SiftsClient.java | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) 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) -- 1.7.10.2