From 70fe8676dea464be0ae474df0c7afa8044af67a6 Mon Sep 17 00:00:00 2001 From: Jim Procter Date: Tue, 27 Jul 2021 14:25:34 +0100 Subject: [PATCH] JAL-3855 suppress NPE when trying to retrieve SIFTS mappings for Alphafold PDB IDs --- src/jalview/structure/StructureSelectionManager.java | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/jalview/structure/StructureSelectionManager.java b/src/jalview/structure/StructureSelectionManager.java index 53644e9..9fcb336 100644 --- a/src/jalview/structure/StructureSelectionManager.java +++ b/src/jalview/structure/StructureSelectionManager.java @@ -410,7 +410,7 @@ public class StructureSelectionManager registerPDBFile(pdb.getId().trim(), pdbFile); } // if PDBId is unavailable then skip SIFTS mapping execution path - isMapUsingSIFTs = isMapUsingSIFTs && pdb.isPPDBIdAvailable(); + isMapUsingSIFTs = isMapUsingSIFTs && pdb.isPPDBIdAvailable() && !pdb.getId().startsWith("AF-"); } catch (Exception ex) { -- 1.7.10.2