JAL-2691 catchall if passed dataset sequences (tests only)
authorJim Procter <jprocter@issues.jalview.org>
Sun, 27 Aug 2017 14:49:02 +0000 (15:49 +0100)
committerJim Procter <jprocter@issues.jalview.org>
Sun, 27 Aug 2017 14:49:02 +0000 (15:49 +0100)
src/jalview/structures/models/AAStructureBindingModel.java

index ffd865f..2528286 100644 (file)
@@ -178,7 +178,8 @@ public abstract class AAStructureBindingModel
           String chain = (chains != null && chains[pe] != null)
                   ? chains[pe][se]
                   : null;
-          SequenceI sq = asq.getDatasetSequence();
+          SequenceI sq = (asq.getDatasetSequence() == null) ? asq
+                  : asq.getDatasetSequence();
           if (sq.getAllPDBEntries() != null)
           {
             for (PDBEntry pdbentry : sq.getAllPDBEntries())