From: gmungoc Date: Tue, 12 Mar 2019 08:18:07 +0000 (+0000) Subject: JAL-3127 check for null viewport X-Git-Tag: Release_2_11_0~17^2~46^2 X-Git-Url: http://source.jalview.org/gitweb/?a=commitdiff_plain;h=c5b363c47e896e47fe5b6d3b64abbdf47bd6f94a;p=jalview.git JAL-3127 check for null viewport --- diff --git a/src/jalview/schemes/ClustalxColourScheme.java b/src/jalview/schemes/ClustalxColourScheme.java index b1cfe82..19723ca 100755 --- a/src/jalview/schemes/ClustalxColourScheme.java +++ b/src/jalview/schemes/ClustalxColourScheme.java @@ -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; }