JAL-98 null reference to globalColourScheme as it has ref to consensus
[jalview.git] / src / jalview / viewmodel / AlignmentViewport.java
index 49f537d..1afe586 100644 (file)
@@ -939,7 +939,9 @@ public abstract class AlignmentViewport implements AlignViewportI,
     groupConservation = null;
     hconsensus = null;
     hcomplementConsensus = null;
-    // TODO removed listeners from changeSupport?
+    // colour scheme may hold reference to consensus
+    globalColourScheme = null;
+    // TODO remove listeners from changeSupport?
     changeSupport = null;
     setAlignment(null);
   }