Merge branch 'develop' into releases/Release_2_10_2_Branch
[jalview.git] / src / jalview / schemes / ResidueColourScheme.java
index 6aa798e..34a5daa 100755 (executable)
@@ -62,8 +62,9 @@ public abstract class ResidueColourScheme implements ColourSchemeI
   /**
    * Creates a new ResidueColourScheme object.
    * 
-   * @param final int[] index table into colors (ResidueProperties.naIndex or
-   *        ResidueProperties.aaIndex)
+   * @param final
+   *          int[] index table into colors (ResidueProperties.naIndex or
+   *          ResidueProperties.aaIndex)
    * @param colors
    *          colours for symbols in sequences
    */
@@ -98,8 +99,7 @@ public abstract class ResidueColourScheme implements ColourSchemeI
   {
     Color colour = Color.white;
 
-    if (colors != null && symbolIndex != null
-            && c < symbolIndex.length
+    if (colors != null && symbolIndex != null && c < symbolIndex.length
             && symbolIndex[c] < colors.length)
     {
       colour = colors[symbolIndex[c]];