Merge branch 'develop' into merge/JAL-3127
[jalview.git] / src / jalview / viewmodel / AlignmentViewport.java
index 850c68e..148ea16 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(this, sg));
+        sg.setColourScheme(
+                cs == null ? null : cs.getInstance(this, sg));
         if (cs != null)
         {
           sg.getGroupColourScheme().alignmentChanged(sg,