JAL-2489 bug fix
authortcofoegbu <tcnofoegbu@dundee.ac.uk>
Tue, 25 Apr 2017 11:45:36 +0000 (12:45 +0100)
committertcofoegbu <tcnofoegbu@dundee.ac.uk>
Tue, 25 Apr 2017 11:45:36 +0000 (12:45 +0100)
src/jalview/io/JSONFile.java

index 053a65e..583bbc0 100644 (file)
@@ -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();