JAL-3855 suppress NPE when trying to retrieve SIFTS mappings for Alphafold PDB IDs
authorJim Procter <j.procter@dundee.ac.uk>
Tue, 27 Jul 2021 13:25:34 +0000 (14:25 +0100)
committerJim Procter <j.procter@dundee.ac.uk>
Tue, 27 Jul 2021 13:25:34 +0000 (14:25 +0100)
src/jalview/structure/StructureSelectionManager.java

index 53644e9..9fcb336 100644 (file)
@@ -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)
     {