JAL-3201 restore group colours correctly from project
[jalview.git] / src / jalview / viewmodel / AlignmentViewport.java
index 0f56561..0ea31d7 100644 (file)
@@ -662,7 +662,8 @@ public abstract class AlignmentViewport
          * retain any colour thresholds per group while
          * changing choice of colour scheme (JAL-2386)
          */
-        sg.setColourScheme(cs.getInstance(sg, hiddenRepSequences));
+        sg.setColourScheme(
+                cs == null ? null : cs.getInstance(sg, hiddenRepSequences));
         if (cs != null)
         {
           sg.getGroupColourScheme().alignmentChanged(sg,