From: kiramt Date: Tue, 28 Feb 2017 14:50:10 +0000 (+0000) Subject: JAL-2426 Removal of NPE in conservation thread when closing Jalview X-Git-Tag: Release_2_10_3b1~342 X-Git-Url: http://source.jalview.org/gitweb/?a=commitdiff_plain;h=c793b702ed3c1ec890411db7156c63dfb3c40153;p=jalview.git JAL-2426 Removal of NPE in conservation thread when closing Jalview --- diff --git a/src/jalview/workers/ConservationThread.java b/src/jalview/workers/ConservationThread.java index e71c4f5..4ada8ea 100644 --- a/src/jalview/workers/ConservationThread.java +++ b/src/jalview/workers/ConservationThread.java @@ -114,6 +114,12 @@ public class ConservationThread extends AlignCalcWorker } calcMan.workerComplete(this); + if ((alignViewport == null) || (calcMan == null) + || (alignViewport.isClosed())) + { + abortAndDestroy(); + return; + } if (ap != null) { ap.paintAlignment(true);