JAL-2859 disambiguate with PDB ID if no file path bug/JAL-2859_uniprottowrongpdbid
authorJim Procter <jprocter@issues.jalview.org>
Mon, 27 Nov 2017 22:09:45 +0000 (22:09 +0000)
committerJim Procter <jprocter@issues.jalview.org>
Mon, 27 Nov 2017 22:09:45 +0000 (22:09 +0000)
src/jalview/gui/StructureViewer.java

index b142613..fb37b77 100644 (file)
@@ -154,6 +154,10 @@ public class StructureViewer
       PDBEntry pdb = pdbs[i];
       SequenceI seq = seqs[i];
       String pdbFile = pdb.getFile();
+      if (pdbFile == null || pdbFile.length() == 0)
+      {
+        pdbFile = pdb.getId();
+      }
       if (!pdbsSeen.containsKey(pdbFile))
       {
         pdbsSeen.put(pdbFile, pdb);