Merge branch 'JAL-1483_29dev' into develop
[jalview.git] / src / jalview / schemes / AnnotationColourGradient.java
index efad430..85ec3ae 100755 (executable)
@@ -258,7 +258,7 @@ public class AnnotationColourGradient extends FollowerColourScheme
   public Color findColour(char c, int j, SequenceI seq)
   {
     Color currentColour = Color.white;
-    AlignmentAnnotation annotation = (seqAssociated ? seqannot.get(seq)
+    AlignmentAnnotation annotation = (seqAssociated && seqannot!=null ? seqannot.get(seq)
             : this.annotation);
     if (annotation == null)
     {