From e3944f6873e7855afb284bb2f0251cd4e7fc1637 Mon Sep 17 00:00:00 2001 From: gmungoc Date: Thu, 10 Dec 2020 16:08:09 +0000 Subject: [PATCH] JAL-3784 null the right overview reference when it is closed --- src/jalview/gui/AlignFrame.java | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/src/jalview/gui/AlignFrame.java b/src/jalview/gui/AlignFrame.java index 42c0df0..2c079b8 100644 --- a/src/jalview/gui/AlignFrame.java +++ b/src/jalview/gui/AlignFrame.java @@ -3402,6 +3402,7 @@ public class AlignFrame extends GAlignFrame implements DropTargetListener, true, true); frame.pack(); frame.setLayer(JLayeredPane.PALETTE_LAYER); + final AlignmentPanel thePanel = this.alignPanel; frame.addInternalFrameListener( new javax.swing.event.InternalFrameAdapter() { @@ -3410,7 +3411,7 @@ public class AlignFrame extends GAlignFrame implements DropTargetListener, javax.swing.event.InternalFrameEvent evt) { overview.dispose(); - alignPanel.setOverviewPanel(null); + thePanel.setOverviewPanel(null); } }); if (getKeyListeners().length > 0) -- 1.7.10.2