From 97df7d7f0c7871ce943059b4f55832648dbff319 Mon Sep 17 00:00:00 2001 From: Jim Procter Date: Thu, 29 Sep 2016 11:53:21 +0100 Subject: [PATCH] JAL-2236 fix: bail if no context available for subgroup --- src/jalview/schemes/TCoffeeColourScheme.java | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/src/jalview/schemes/TCoffeeColourScheme.java b/src/jalview/schemes/TCoffeeColourScheme.java index 62f3a2e..2be51c2 100644 --- a/src/jalview/schemes/TCoffeeColourScheme.java +++ b/src/jalview/schemes/TCoffeeColourScheme.java @@ -86,6 +86,10 @@ public class TCoffeeColourScheme extends ResidueColourScheme seqMap = new IdentityHashMap(); AnnotatedCollectionI alcontext = alignment instanceof AlignmentI ? alignment : alignment.getContext(); + if (alcontext == null) + { + return; + } int w = 0; for (AlignmentAnnotation al : alcontext .findAnnotation(TCoffeeScoreFile.TCOFFEE_SCORE)) -- 1.7.10.2