From 86cc86e5815d20b058456c0bf09b979546acde6e Mon Sep 17 00:00:00 2001 From: gmungoc Date: Wed, 26 Oct 2016 16:09:56 +0100 Subject: [PATCH] JAL-98 null reference to globalColourScheme as it has ref to consensus --- src/jalview/viewmodel/AlignmentViewport.java | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/src/jalview/viewmodel/AlignmentViewport.java b/src/jalview/viewmodel/AlignmentViewport.java index 49f537d..1afe586 100644 --- a/src/jalview/viewmodel/AlignmentViewport.java +++ b/src/jalview/viewmodel/AlignmentViewport.java @@ -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); } -- 1.7.10.2