bug fix for 0013013
authorjprocter <Jim Procter>
Mon, 13 Mar 2006 16:46:36 +0000 (16:46 +0000)
committerjprocter <Jim Procter>
Mon, 13 Mar 2006 16:46:36 +0000 (16:46 +0000)
src/jalview/gui/SequenceFetcher.java

index 2e2456b..67a3eff 100755 (executable)
@@ -249,7 +249,7 @@ public class SequenceFetcher
       while (en.hasMoreElements())\r
       {\r
         UniprotEntry entry = (UniprotEntry) en.nextElement();\r
-        StringBuffer name = new StringBuffer(">Uniprot/Swiss-Prot");\r
+        StringBuffer name = new StringBuffer(">UniProt/Swiss-Prot");\r
         Enumeration en2 = entry.getAccession().elements();\r
         while (en2.hasMoreElements())\r
         {\r
@@ -288,10 +288,14 @@ public class SequenceFetcher
         }\r
 \r
         sequence[i].getDatasetSequence().setPDBId(onlyPdbEntries);\r
-        e = entry.getFeature().elements();\r
-        while(e.hasMoreElements())\r
+        if (entry.getFeature() != null)\r
         {\r
-          sequence[i].getDatasetSequence().addSequenceFeature((SequenceFeature)e.nextElement());\r
+          e = entry.getFeature().elements();\r
+          while (e.hasMoreElements())\r
+          {\r
+            sequence[i].getDatasetSequence().addSequenceFeature( (\r
+                SequenceFeature) e.nextElement());\r
+          }\r
         }\r
       }\r
     }\r