From: Jim Procter Date: Thu, 29 Sep 2016 10:53:21 +0000 (+0100) Subject: JAL-2236 fix: bail if no context available for subgroup X-Git-Tag: Release_2_10_0~30^2~2^2 X-Git-Url: http://source.jalview.org/gitweb/?a=commitdiff_plain;h=97df7d7f0c7871ce943059b4f55832648dbff319;p=jalview.git JAL-2236 fix: bail if no context available for subgroup --- 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))