From c643b4ce613987ceeea4e47cb570cc158b25a0cb Mon Sep 17 00:00:00 2001 From: Jim Procter Date: Sun, 27 Aug 2017 15:49:02 +0100 Subject: [PATCH] JAL-2691 catchall if passed dataset sequences (tests only) --- src/jalview/structures/models/AAStructureBindingModel.java | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) 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()) -- 1.7.10.2