From: Jim Procter Date: Sun, 27 Aug 2017 14:49:02 +0000 (+0100) Subject: JAL-2691 catchall if passed dataset sequences (tests only) X-Git-Tag: Release_2_10_2b1~11^2~9^2~2^2~1 X-Git-Url: http://source.jalview.org/gitweb/?a=commitdiff_plain;h=c643b4ce613987ceeea4e47cb570cc158b25a0cb;p=jalview.git JAL-2691 catchall if passed dataset sequences (tests only) --- diff --git a/src/jalview/structures/models/AAStructureBindingModel.java b/src/jalview/structures/models/AAStructureBindingModel.java index ffd865f..2528286 100644 --- a/src/jalview/structures/models/AAStructureBindingModel.java +++ b/src/jalview/structures/models/AAStructureBindingModel.java @@ -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())