JAL-98 null reference to globalColourScheme as it has ref to consensus
authorgmungoc <g.m.carstairs@dundee.ac.uk>
Wed, 26 Oct 2016 15:09:56 +0000 (16:09 +0100)
committergmungoc <g.m.carstairs@dundee.ac.uk>
Wed, 26 Oct 2016 15:09:56 +0000 (16:09 +0100)
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);
   }