From aa885913f06fc3885c818370544f43474a14f402 Mon Sep 17 00:00:00 2001 From: Jim Procter Date: Mon, 27 Nov 2017 22:09:45 +0000 Subject: [PATCH] JAL-2859 disambiguate with PDB ID if no file path --- src/jalview/gui/StructureViewer.java | 4 ++++ 1 file changed, 4 insertions(+) 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); -- 1.7.10.2