JAL-4134 efficiency improvement
[jalview.git] / test / jalview / gui / FeatureSettingsTest.java
index 98c04b3..1b988ec 100644 (file)
@@ -63,7 +63,8 @@ public class FeatureSettingsTest
   @AfterMethod(alwaysRun = true)
   public void tearDown()
   {
-    Desktop.instance.closeAll_actionPerformed(null);
+    if (Desktop.instance != null)
+      Desktop.instance.closeAll_actionPerformed(null);
   }
 
   /**