JAL-3127 check for null viewport feature/JAL-3127_seqidChainshading
authorgmungoc <g.m.carstairs@dundee.ac.uk>
Tue, 12 Mar 2019 08:18:07 +0000 (08:18 +0000)
committergmungoc <g.m.carstairs@dundee.ac.uk>
Tue, 12 Mar 2019 08:18:07 +0000 (08:18 +0000)
src/jalview/schemes/ClustalxColourScheme.java

index b1cfe82..19723ca 100755 (executable)
@@ -340,7 +340,7 @@ public class ClustalxColourScheme extends ResidueColourScheme
           AnnotatedCollectionI sg)
   {
     ClustalxColourScheme css = new ClustalxColourScheme(sg,
-            view.getHiddenRepSequences());
+            view == null ? null : view.getHiddenRepSequences());
     css.includeGaps = includeGaps;
     return css;
   }