From: Jim Procter Date: Tue, 27 Jul 2021 13:25:34 +0000 (+0100) Subject: JAL-3855 suppress NPE when trying to retrieve SIFTS mappings for Alphafold PDB IDs X-Git-Tag: Release_2_11_2_0~39^2~36^2~1 X-Git-Url: http://source.jalview.org/gitweb/?a=commitdiff_plain;h=70fe8676dea464be0ae474df0c7afa8044af67a6;p=jalview.git JAL-3855 suppress NPE when trying to retrieve SIFTS mappings for Alphafold PDB IDs --- 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) {