From 92c318069f0358002bf5684a4a6f6b58bd6234e5 Mon Sep 17 00:00:00 2001 From: Jim Procter Date: Wed, 7 Feb 2018 16:56:44 +0000 Subject: [PATCH] JAL-2780 JAL-2891 clear all windows always beforeTest for Jalview2XmlBase --- test/jalview/io/Jalview2xmlBase.java | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/test/jalview/io/Jalview2xmlBase.java b/test/jalview/io/Jalview2xmlBase.java index 15e18e3..fbdd782 100644 --- a/test/jalview/io/Jalview2xmlBase.java +++ b/test/jalview/io/Jalview2xmlBase.java @@ -76,7 +76,8 @@ public class Jalview2xmlBase @BeforeTest(alwaysRun = true) public static void clearDesktop() { - if (Desktop.instance != null && Desktop.getAlignFrames() != null) + if (Desktop.instance != null && Desktop.getFrames() != null + && Desktop.getFrames().length > 0) { Desktop.instance.closeAll_actionPerformed(null); } -- 1.7.10.2