Merge branch 'feature/JAL-244_Automatically_adjust_left_margin_to_avoid_cropping_anno...
[jalview.git] / test / jalview / gui / SeqPanelTest.java
index 6a27b51..701431b 100644 (file)
@@ -250,7 +250,8 @@ public class SeqPanelTest
   @AfterMethod(alwaysRun = true)
   public void tearDown()
   {
-    Desktop.instance.closeAll_actionPerformed(null);
+    if (Desktop.instance != null)
+      Desktop.instance.closeAll_actionPerformed(null);
   }
 
   @Test(groups = "Functional")