From: Jim Procter Date: Mon, 27 Nov 2017 22:09:45 +0000 (+0000) Subject: JAL-2859 disambiguate with PDB ID if no file path X-Git-Tag: Release_2_10_3b1~5^2~2^2 X-Git-Url: http://source.jalview.org/gitweb/?a=commitdiff_plain;ds=sidebyside;h=refs%2Fheads%2Fbug%2FJAL-2859_uniprottowrongpdbid;p=jalview.git JAL-2859 disambiguate with PDB ID if no file path --- diff --git a/src/jalview/gui/StructureViewer.java b/src/jalview/gui/StructureViewer.java index b142613..fb37b77 100644 --- a/src/jalview/gui/StructureViewer.java +++ b/src/jalview/gui/StructureViewer.java @@ -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);