From fb4028aee26fec7707500b32632ce27521bcf3c4 Mon Sep 17 00:00:00 2001 From: tcofoegbu Date: Tue, 25 Apr 2017 12:45:36 +0100 Subject: [PATCH] JAL-2489 bug fix --- src/jalview/io/JSONFile.java | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) 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(); -- 1.7.10.2