From 832ef059048ab0214807fef12748315eeca226bf Mon Sep 17 00:00:00 2001 From: hansonr Date: Thu, 9 May 2019 21:51:19 -0500 Subject: [PATCH] Jalview-JS/JAL-3253-applet Desktop fix for null desktopPane in testing --- src/jalview/gui/Desktop.java | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/src/jalview/gui/Desktop.java b/src/jalview/gui/Desktop.java index 38cdf35..c76c396 100644 --- a/src/jalview/gui/Desktop.java +++ b/src/jalview/gui/Desktop.java @@ -1514,6 +1514,10 @@ public class Desktop extends jalview.jbgui.GDesktop @Override public void closeAll_actionPerformed(ActionEvent e) { + if (getDesktopPane() == null) + { + return; + } // TODO show a progress bar while closing? JInternalFrame[] frames = getDesktopPane().getAllFrames(); for (int i = 0; i < frames.length; i++) -- 1.7.10.2