JAL-629 JAL-4167 Added args to tests. Fixed potential --headless arg bug. Added testT...
[jalview.git] / test / jalview / bin / HiDPISettingTest1.java
index 4561ff4..49a721f 100644 (file)
@@ -85,7 +85,8 @@ public class HiDPISettingTest1
   @AfterClass(alwaysRun = true)
   public void tearDown()
   {
-    Desktop.instance.closeAll_actionPerformed(null);
+    if (Desktop.instance != null)
+      Desktop.instance.closeAll_actionPerformed(null);
   }
 
   @Test(groups = { "Functional" })