From: gmungoc Date: Wed, 26 Oct 2016 15:09:56 +0000 (+0100) Subject: JAL-98 null reference to globalColourScheme as it has ref to consensus X-Git-Tag: Release_2_10_1^2~22^2~3^2~1 X-Git-Url: http://source.jalview.org/gitweb/?a=commitdiff_plain;h=86cc86e5815d20b058456c0bf09b979546acde6e;p=jalview.git JAL-98 null reference to globalColourScheme as it has ref to consensus --- 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); }