From e341b4fe90a11974ec5ed3d228f838ccbdba595f Mon Sep 17 00:00:00 2001 From: jprocter Date: Mon, 13 Mar 2006 16:46:36 +0000 Subject: [PATCH] bug fix for 0013013 --- src/jalview/gui/SequenceFetcher.java | 12 ++++++++---- 1 file changed, 8 insertions(+), 4 deletions(-) diff --git a/src/jalview/gui/SequenceFetcher.java b/src/jalview/gui/SequenceFetcher.java index 2e2456b..67a3eff 100755 --- a/src/jalview/gui/SequenceFetcher.java +++ b/src/jalview/gui/SequenceFetcher.java @@ -249,7 +249,7 @@ public class SequenceFetcher while (en.hasMoreElements()) { UniprotEntry entry = (UniprotEntry) en.nextElement(); - StringBuffer name = new StringBuffer(">Uniprot/Swiss-Prot"); + StringBuffer name = new StringBuffer(">UniProt/Swiss-Prot"); Enumeration en2 = entry.getAccession().elements(); while (en2.hasMoreElements()) { @@ -288,10 +288,14 @@ public class SequenceFetcher } sequence[i].getDatasetSequence().setPDBId(onlyPdbEntries); - e = entry.getFeature().elements(); - while(e.hasMoreElements()) + if (entry.getFeature() != null) { - sequence[i].getDatasetSequence().addSequenceFeature((SequenceFeature)e.nextElement()); + e = entry.getFeature().elements(); + while (e.hasMoreElements()) + { + sequence[i].getDatasetSequence().addSequenceFeature( ( + SequenceFeature) e.nextElement()); + } } } } -- 1.7.10.2