JAL-2089 Merge branch releases/Release_2_10_Branch to master
[jalview.git] / src / jalview / schemes / RNAHelicesColour.java
index cc7f5ca..f4f065c 100644 (file)
@@ -91,6 +91,10 @@ public class RNAHelicesColour extends ResidueColourScheme
     // This loop will find the first rna structure annotation by which to colour
     // the sequences.
     AlignmentAnnotation[] annotations = alignment.getAlignmentAnnotation();
+    if (annotations == null)
+    {
+      return;
+    }
     for (int i = 0; i < annotations.length; i++)
     {