From: tcofoegbu Date: Tue, 25 Apr 2017 11:45:36 +0000 (+0100) Subject: JAL-2489 bug fix X-Git-Tag: Release_2_10_2~3^2~128 X-Git-Url: http://source.jalview.org/gitweb/?a=commitdiff_plain;h=fb4028aee26fec7707500b32632ce27521bcf3c4;p=jalview.git JAL-2489 bug fix --- diff --git a/src/jalview/io/JSONFile.java b/src/jalview/io/JSONFile.java index 053a65e..583bbc0 100644 --- a/src/jalview/io/JSONFile.java +++ b/src/jalview/io/JSONFile.java @@ -767,7 +767,8 @@ public class JSONFile extends AlignFile implements ComplexAlignFile } } } - globalColourScheme = viewport.getGlobalColourScheme().getSchemeName(); + globalColourScheme = (viewport.getGlobalColourScheme() == null) ? ResidueColourScheme.NONE + : viewport.getGlobalColourScheme().getSchemeName(); setDisplayedFeatures(viewport.getFeaturesDisplayed()); showSeqFeatures = viewport.isShowSequenceFeatures();