From c5b363c47e896e47fe5b6d3b64abbdf47bd6f94a Mon Sep 17 00:00:00 2001 From: gmungoc Date: Tue, 12 Mar 2019 08:18:07 +0000 Subject: [PATCH] JAL-3127 check for null viewport --- src/jalview/schemes/ClustalxColourScheme.java | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) 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; } -- 1.7.10.2